summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/tty.h')
-rw-r--r--winsup/cygwin/tty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h
index deb8e207b..38e57caba 100644
--- a/winsup/cygwin/tty.h
+++ b/winsup/cygwin/tty.h
@@ -15,7 +15,7 @@ details. */
#define INP_BUFFER_SIZE 256
#define OUT_BUFFER_SIZE 256
#define NTTYS 64
-#define real_tty_attached(p) ((p)->ctty >= 0 && !iscons_dev ((p)->ctty))
+#define real_tty_attached(p) ((p)->ctty > 0 && !iscons_dev ((p)->ctty))
/* Input/Output/ioctl events */