diff options
-rw-r--r-- | usr/klibc/isatty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/klibc/isatty.c b/usr/klibc/isatty.c index c2e4a4ea7fba3..2359479a82a11 100644 --- a/usr/klibc/isatty.c +++ b/usr/klibc/isatty.c @@ -8,8 +8,9 @@ int isatty(int fd) { - int dummy; + struct termios dummy; /* All ttys support TIOCGPGRP */ - return !ioctl(fd, TIOCGPGRP, &dummy); + /* except /dev/console which needs TCGETS */ + return !ioctl(fd, TCGETS, &dummy); } |