summaryrefslogtreecommitdiffstats
path: root/sys/dev/rc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-06 13:25:01 +0000
committerbde <bde@FreeBSD.org>1997-12-06 13:25:01 +0000
commite868842f1180b3e29eff5629c14e3f84e2408cf5 (patch)
treebbf7b0ee0acd4d019803c4377eb818fb2dde8ec6 /sys/dev/rc
parent5bdfd4647651209e0cb83448fabf713a337acb1b (diff)
downloadFreeBSD-src-e868842f1180b3e29eff5629c14e3f84e2408cf5.zip
FreeBSD-src-e868842f1180b3e29eff5629c14e3f84e2408cf5.tar.gz
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.
Diffstat (limited to 'sys/dev/rc')
-rw-r--r--sys/dev/rc/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index 541e3f5..8d1e298 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();
OpenPOWER on IntegriCloud