blob: 43108b70df8e7daa7cb00fb09433223bdeafd365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ad,v 1.3 2016/03/15 12:15:26 wiz Exp $
--- src/tet3/dtet2lib/notty.c 1999-09-04 15:47:17.000000000 +0100
+++ src/tet3/dtet2lib/notty.c 2003-05-27 23:55:51.000000000 +0100
@@ -97,7 +97,7 @@
** this for BSD systems where setpgrp() does not change the
** control terminal
*/
- if ((ttyfd = open("/dev/tty", O_RDONLY | O_NDELAY)) >= 0) {
+ if ((ttyfd = open("/dev/tty", O_RDONLY | O_NONBLOCK)) >= 0) {
(void) ioctl(ttyfd, TIOCNOTTY, 0);
(void) close(ttyfd);
}
|