diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-26 18:00:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-26 18:00:42 +0000 |
commit | b5ac7add8214b5b1d3a3557e63ece819dd1e7c56 (patch) | |
tree | 4f840a357fe1ddb27d0a850af958636843ab0179 /usr.bin/window/wwtty.c | |
parent | bc349e2e6d187585cab3ce4d8d434fc87cced2a0 (diff) |
from netbsd:
Use POSIX signals. Always set FNONBLOCK on the tty.
Eliminate the use of SIGIO, and some other cleanup.
We don't need non-blocking mode without SIGIO.
Diffstat (limited to 'usr.bin/window/wwtty.c')
-rw-r--r-- | usr.bin/window/wwtty.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/window/wwtty.c b/usr.bin/window/wwtty.c index 347862608ef..e20b8c5c2c4 100644 --- a/usr.bin/window/wwtty.c +++ b/usr.bin/window/wwtty.c @@ -1,4 +1,4 @@ -/* $NetBSD: wwtty.c,v 1.3 1995/09/28 10:35:58 tls Exp $ */ +/* $NetBSD: wwtty.c,v 1.4 1995/12/21 11:06:50 mycroft Exp $ */ /* * Copyright (c) 1983, 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)wwtty.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$NetBSD: wwtty.c,v 1.3 1995/09/28 10:35:58 tls Exp $"; +static char rcsid[] = "$NetBSD: wwtty.c,v 1.4 1995/12/21 11:06:50 mycroft Exp $"; #endif #endif /* not lint */ @@ -69,8 +69,6 @@ register struct ww_tty *t; if (tcgetattr(d, &t->ww_termios) < 0) goto bad; #endif - if ((t->ww_fflags = fcntl(d, F_GETFL, 0)) < 0) - goto bad; return 0; bad: wwerrno = WWE_SYS; @@ -112,8 +110,6 @@ register struct ww_tty *t; if (tcsetattr(d, TCSADRAIN, &t->ww_termios) < 0) goto bad; #endif - if (fcntl(d, F_SETFL, t->ww_fflags) < 0) - goto bad; return 0; bad: wwerrno = WWE_SYS; |