diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2005-02-17 12:45:43 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2005-02-17 12:45:43 +0000 |
commit | 600a168c18424ed9b6c24cc943a0b20398c69ff0 (patch) | |
tree | 22af1d1de38b266f9130b8ea9c1d51a9c43cddc4 /usr.bin | |
parent | be8b6236cc1739d09755fdf0da2ced5a173f78e8 (diff) |
Fix case where we were testing on AC, but operating on FD. The changed code
follows the pattern of the rest of the source. otto@ ok
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tip/aculib/v831.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tip/aculib/v831.c b/usr.bin/tip/aculib/v831.c index 93801bfcb93..b14d9611815 100644 --- a/usr.bin/tip/aculib/v831.c +++ b/usr.bin/tip/aculib/v831.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v831.c,v 1.9 2003/06/03 02:56:18 millert Exp $ */ +/* $OpenBSD: v831.c,v 1.10 2005/02/17 12:45:42 aaron Exp $ */ /* $NetBSD: v831.c,v 1.5 1996/12/29 10:42:01 cgd Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)v831.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: v831.c,v 1.9 2003/06/03 02:56:18 millert Exp $"; +static const char rcsid[] = "$OpenBSD: v831.c,v 1.10 2005/02/17 12:45:42 aaron Exp $"; #endif /* not lint */ /* @@ -157,9 +157,9 @@ v831_abort() sleep(2); if (child > 0) kill(child, SIGKILL); - if (AC > 0) + if (FD > 0) ioctl(FD, TIOCNXCL, NULL); - close(AC); + close(AC); if (FD > 0) ioctl(FD, TIOCCDTR, 0); close(FD); |