From: Dave A. Borman Date: Tue, 21 Feb 1995 05:59:20 +0000 (-0800) Subject: Fix f_extproc() routine so that it works. X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/bbe4907ae81ce68d2682506b54aab2da0795aa7c Fix f_extproc() routine so that it works. SCCS-vsn: bin/stty/key.c 8.4 --- diff --git a/usr/src/bin/stty/key.c b/usr/src/bin/stty/key.c index b539700e4d..13fb699f93 100644 --- a/usr/src/bin/stty/key.c +++ b/usr/src/bin/stty/key.c @@ -6,7 +6,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)key.c 8.3 (Berkeley) %G%"; +static char sccsid[] = "@(#)key.c 8.4 (Berkeley) %G%"; #endif /* not lint */ #include @@ -164,13 +164,14 @@ f_extproc(ip) struct info *ip; { - if (ip->set) { - int tmp = 1; + if (ip->off) { + int tmp = 0; (void)ioctl(ip->fd, TIOCEXT, &tmp); } else { - int tmp = 0; + int tmp = 1; (void)ioctl(ip->fd, TIOCEXT, &tmp); } + ip->set = 1; } void