tty: handle REVIVE case on console device
. can happen on e.g. ^S . reported by Stephen Hatton
This commit is contained in:
parent
86b061078b
commit
3a44cd477b
1 changed files with 8 additions and 4 deletions
|
@ -206,11 +206,15 @@ int try;
|
|||
|
||||
/* Reply to the writer if all output is finished or if an error occured. */
|
||||
if (tp->tty_outleft == 0 || result != OK) {
|
||||
/* REVIVE is not possible. I/O on memory mapped consoles finishes. */
|
||||
tty_reply(tp->tty_outrepcode, tp->tty_outcaller, tp->tty_outproc,
|
||||
tp->tty_outcum);
|
||||
if(tp->tty_outrepcode == TTY_REVIVE) {
|
||||
notify(tp->tty_outcaller);
|
||||
tp->tty_outrevived = 1;
|
||||
} else {
|
||||
tty_reply(tp->tty_outrepcode, tp->tty_outcaller,
|
||||
tp->tty_outproc, tp->tty_outcum);
|
||||
tp->tty_outcum = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue