summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
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/si
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/si')
-rw-r--r--sys/dev/si/si.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 6c4f899..1c72960 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.60 1997/09/14 03:19:18 peter Exp $
+ * $Id: si.c,v 1.61 1997/09/21 21:41:37 gibbs Exp $
*/
#ifndef lint
@@ -1174,14 +1174,14 @@ siioctl(dev, cmd, data, flag, p)
}
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if (error >= 0)
+ if (error != ENOIOCTL)
goto out;
oldspl = spltty();
error = ttioctl(tp, cmd, data, flag);
si_disc_optim(tp, &tp->t_termios, pp);
- if (error >= 0)
+ if (error != ENOIOCTL)
goto outspl;
switch (cmd) {
OpenPOWER on IntegriCloud