patch-2.0.17 linux/drivers/char/n_tty.c
Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/ftape/fdc-isr.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Sep 1 09:14:45 1996
- Orig file:
v2.0.16/linux/drivers/char/n_tty.c
- Orig date:
Wed Jul 24 10:49:53 1996
diff -u --recursive --new-file v2.0.16/linux/drivers/char/n_tty.c linux/drivers/char/n_tty.c
@@ -795,7 +795,7 @@
current->timeout = (unsigned long) -1;
if (time)
tty->minimum_to_wake = 1;
- else if (!tty->read_wait ||
+ else if (!waitqueue_active(&tty->read_wait) ||
(tty->minimum_to_wake > minimum))
tty->minimum_to_wake = minimum;
} else {
@@ -907,7 +907,7 @@
}
remove_wait_queue(&tty->read_wait, &wait);
- if (!tty->read_wait)
+ if (!waitqueue_active(&tty->read_wait))
tty->minimum_to_wake = minimum;
current->state = TASK_RUNNING;
@@ -991,7 +991,7 @@
return 1;
if (tty_hung_up_p(file))
return 1;
- if (!tty->read_wait) {
+ if (!waitqueue_active(&tty->read_wait)) {
if (MIN_CHAR(tty) && !TIME_CHAR(tty))
tty->minimum_to_wake = MIN_CHAR(tty);
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov