From: Alan Cox Date: Mon, 13 Nov 2017 01:32:47 +0000 (+0000) Subject: tty: allow signals to break out of a tty write to a tty that is flow controlled X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8b0adfcc82de521548f3a95d44738ebbe47a5e3b;p=FUZIX.git tty: allow signals to break out of a tty write to a tty that is flow controlled --- diff --git a/Kernel/tty.c b/Kernel/tty.c index 46e7aef1..24b9b6fe 100644 --- 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;