patch-2.2.17 linux/drivers/char/n_tty.c
Next file: linux/drivers/char/pc_keyb.c
Previous file: linux/drivers/char/misc.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Sep 4 18:39:17 2000
- Orig file:
v2.2.16/drivers/char/n_tty.c
- Orig date:
Mon Sep 4 18:37:31 2000
diff -u --recursive --new-file v2.2.16/drivers/char/n_tty.c linux/drivers/char/n_tty.c
@@ -1142,9 +1142,7 @@
nr -= num;
if (nr == 0)
break;
- current->state = TASK_RUNNING;
get_user(c, b);
- current->state = TASK_INTERRUPTIBLE;
if (opost(c, tty) < 0)
break;
b++; nr--;
@@ -1152,9 +1150,7 @@
if (tty->driver.flush_chars)
tty->driver.flush_chars(tty);
} else {
- current->state = TASK_RUNNING;
c = tty->driver.write(tty, 1, b, nr);
- current->state = TASK_INTERRUPTIBLE;
if (c < 0) {
retval = c;
goto break_out;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)