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/gnu/i386 | |
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/gnu/i386')
-rw-r--r-- | sys/gnu/i386/isa/dgb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c index a146720..da023aa 100644 --- a/sys/gnu/i386/isa/dgb.c +++ b/sys/gnu/i386/isa/dgb.c @@ -1,5 +1,5 @@ /*- - * dgb.c $Id: dgb.c,v 1.27 1997/07/01 00:22:35 bde Exp $ + * dgb.c $Id: dgb.c,v 1.28 1997/09/14 03:19:00 peter Exp $ * * Digiboard driver. * @@ -1688,13 +1688,13 @@ dgbioctl(dev, cmd, data, flag, p) port->mustdrain=1; error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag, p); - if (error >= 0) + if (error != ENOIOCTL) return error; s = spltty(); error = ttioctl(tp, cmd, data, flag); disc_optim(tp,&tp->t_termios); port->mustdrain=0; - if (error >= 0) { + if (error != ENOIOCTL) { splx(s); if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) { DPRINT6(DB_PARAM,"dgb%d: port%d: dgbioctl-RES c=0x%x i=0x%x l=0x%x\n",unit,pnum,tp->t_cflag,tp->t_iflag,tp->t_lflag); |