diff options
author | bde <bde@FreeBSD.org> | 1997-12-06 13:25:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-06 13:25:01 +0000 |
commit | e868842f1180b3e29eff5629c14e3f84e2408cf5 (patch) | |
tree | bbf7b0ee0acd4d019803c4377eb818fb2dde8ec6 /sys/i386/isa/cx.c | |
parent | 5bdfd4647651209e0cb83448fabf713a337acb1b (diff) | |
download | FreeBSD-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/i386/isa/cx.c')
-rw-r--r-- | sys/i386/isa/cx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index b655c26..d40f3e7 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -434,10 +434,10 @@ int cxioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) #else error = (*linesw[tp->t_line].l_ioctl) (tp, cmd, data, flag); #endif - if (error >= 0) + if (error != ENOIOCTL) return (error); error = ttioctl (tp, cmd, data, flag); - if (error >= 0) + if (error != ENOIOCTL) return (error); s = spltty (); |