summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/istallion.c
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/i386/isa/istallion.c
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/i386/isa/istallion.c')
-rw-r--r--sys/i386/isa/istallion.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c
index 8dcba8e..272d758 100644
--- a/sys/i386/isa/istallion.c
+++ b/sys/i386/isa/istallion.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: istallion.c,v 1.12 1997/07/20 14:10:04 bde Exp $
+ * $Id: istallion.c,v 1.13 1997/09/14 03:19:09 peter Exp $
*/
/*****************************************************************************/
@@ -1264,13 +1264,13 @@ STATIC int stliioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
* process this command (if they can).
*/
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
- if (error >= 0)
+ if (error != ENOIOCTL)
return(error);
x = spltty();
error = ttioctl(tp, cmd, data, flag);
stli_ttyoptim(portp, &tp->t_termios);
- if (error >= 0) {
+ if (error != ENOIOCTL) {
splx(x);
return(error);
}
OpenPOWER on IntegriCloud