From 239b7b699e20533f6884134e5007c7708d67317a Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 6 Dec 1997 13:25:01 +0000 Subject: 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. --- sys/dev/rc/rc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/rc') diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 541e3f529a8d..8d1e298fddf5 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -1097,11 +1097,11 @@ struct proc *p; struct tty *tp = rc->rc_tp; error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p); - if (error >= 0) + if (error != ENOIOCTL) return (error); error = ttioctl(tp, cmd, data, flag); disc_optim(tp, &tp->t_termios, rc); - if (error >= 0) + if (error != ENOIOCTL) return (error); s = spltty(); -- cgit v1.3