public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d46a0
)
tty: allow signals to break out of a tty write to a tty that is flow controlled
author
Alan Cox
<alan@linux.intel.com>
Mon, 13 Nov 2017 01:32:47 +0000
(
01:32
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 13 Nov 2017 01:32:47 +0000
(
01:32
+0000)
Kernel/tty.c
patch
|
blob
|
history
diff --git
a/Kernel/tty.c
b/Kernel/tty.c
index
46e7aef
..
24b9b6f
100644
(file)
--- a/
Kernel/tty.c
+++ b/
Kernel/tty.c
@@
-509,6
+509,10
@@
uint8_t tty_putc_maywait(uint8_t minor, unsigned char c, uint8_t flag)
*/
if (!udata.u_ininterrupt) {
while ((t = tty_writeready(minor)) != TTY_READY_NOW) {
+ if (chksigs()) {
+ udata.u_error = EINTR;
+ return 1;
+ }
if (t == TTY_READY_LATER && flag) {
udata.u_error = EAGAIN;
return 1;