From 239b7b699e20533f6884134e5007c7708d67317a Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 6 Dec 1997 13:25:01 +0000 Subject: 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. --- sys/dev/si/si.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/si') diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index 6c4f899f6199a..1c729608a68ec 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) { -- cgit v1.3