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/pcvt/pcvt_drv.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/pcvt/pcvt_drv.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index f0961ee..f323ce6 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -738,7 +738,8 @@ do_standard: #endif #if PCVT_NETBSD > 9 || PCVT_FREEBSD >= 200 - if((error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p)) >= 0) + if((error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p)) + != ENOIOCTL) return (error); #else if((error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag)) >= 0) @@ -749,7 +750,7 @@ do_standard: if((error = ttioctl(tp, cmd, data, flag, p)) >= 0) return (error); #else - if((error = ttioctl(tp, cmd, data, flag)) >= 0) + if((error = ttioctl(tp, cmd, data, flag)) != ENOIOCTL) return (error); #endif /* PCVT_NETBSD > 9 */ |