From 61b7b2d81a7d66ca91bea5714f966a5d34e53866 Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Thu, 17 Apr 2014 08:55:34 +0300 Subject: Replace explicit uv_guest_handle(fd) == UV_TTY by os_isatty --- src/os/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/input.c') diff --git a/src/os/input.c b/src/os/input.c index 5143729698..4310edd514 100644 --- a/src/os/input.c +++ b/src/os/input.c @@ -167,7 +167,7 @@ static void read_cb(RStream *rstream, void *data, bool at_eof) if (at_eof) { if (!started_reading && rstream_is_regular_file(rstream) - && uv_guess_handle(2) == UV_TTY) { + && os_isatty(STDERR_FILENO)) { // Read error. Since stderr is a tty we switch to reading from it. This // is for handling for cases like "foo | xargs vim" because xargs // redirects stdin from /dev/null. Previously, this was done in ui.c -- cgit