aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-12-06 13:25:01 +0000
committerBruce Evans <bde@FreeBSD.org>1997-12-06 13:25:01 +0000
commit239b7b699e20533f6884134e5007c7708d67317a (patch)
tree1921294e8fbe5d2f91d066ec237f5402e92b81de /sys/kern/tty_pty.c
parent27c20503c61a661921e8c226868df0f6399854f7 (diff)
downloadsrc-239b7b699e20533f6884134e5007c7708d67317a.tar.gz
src-239b7b699e20533f6884134e5007c7708d67317a.zip
Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that are
not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s.
Notes
Notes: svn path=/head/; revision=31577
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index db0696265ab0..e60f47327f93 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_pty.c 8.4 (Berkeley) 2/20/95
- * $Id: tty_pty.c,v 1.46 1997/09/14 02:40:45 peter Exp $
+ * $Id: tty_pty.c,v 1.47 1997/09/16 11:43:32 bde Exp $
*/
/*
@@ -730,9 +730,9 @@ ptyioctl(dev, cmd, data, flag, p)
return(0);
}
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if (error < 0)
+ if (error == ENOIOCTL)
error = ttioctl(tp, cmd, data, flag);
- if (error < 0) {
+ if (error == ENOIOCTL) {
if (pti->pt_flags & PF_UCNTL &&
(cmd & ~0xff) == UIOCCMD(0)) {
if (cmd & 0xff) {