mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Revert "Temporary hack to fix ctrl-c not interrupting read()"
This reverts commit a79d17fde6947bde02aa9d6dfe747b530f79fe5e.
This commit is contained in:
parent
f658d6335b
commit
e7ef07b557
7
fs/tty.c
7
fs/tty.c
@ -169,9 +169,7 @@ static bool tty_send_input_signal(struct tty *tty, char ch) {
|
||||
if (tty->fg_group != 0) {
|
||||
if (!(tty->termios.lflags & NOFLSH_))
|
||||
tty->bufsize = 0;
|
||||
unlock(&tty->lock);
|
||||
send_group_signal(tty->fg_group, sig);
|
||||
lock(&tty->lock);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -502,11 +500,8 @@ static int tty_ioctl(struct fd *fd, int cmd, void *arg) {
|
||||
|
||||
void tty_set_winsize(struct tty *tty, struct winsize_ winsize) {
|
||||
tty->winsize = winsize;
|
||||
if (tty->fg_group != 0) {
|
||||
unlock(&tty->lock);
|
||||
if (tty->fg_group != 0)
|
||||
send_group_signal(tty->fg_group, SIGWINCH_);
|
||||
lock(&tty->lock);
|
||||
}
|
||||
}
|
||||
|
||||
struct dev_ops tty_dev = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user