|
@@ -617,7 +617,7 @@ static int set_termios(struct tty_struct *tty, void __user *arg, int opt)
|
|
|
if (opt & TERMIOS_WAIT) {
|
|
if (opt & TERMIOS_WAIT) {
|
|
|
tty_wait_until_sent(tty, 0);
|
|
tty_wait_until_sent(tty, 0);
|
|
|
if (signal_pending(current))
|
|
if (signal_pending(current))
|
|
|
- return -EINTR;
|
|
|
|
|
|
|
+ return -ERESTARTSYS;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
tty_set_termios(tty, &tmp_termios);
|
|
tty_set_termios(tty, &tmp_termios);
|
|
@@ -684,7 +684,7 @@ static int set_termiox(struct tty_struct *tty, void __user *arg, int opt)
|
|
|
if (opt & TERMIOS_WAIT) {
|
|
if (opt & TERMIOS_WAIT) {
|
|
|
tty_wait_until_sent(tty, 0);
|
|
tty_wait_until_sent(tty, 0);
|
|
|
if (signal_pending(current))
|
|
if (signal_pending(current))
|
|
|
- return -EINTR;
|
|
|
|
|
|
|
+ return -ERESTARTSYS;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
mutex_lock(&tty->termios_mutex);
|
|
mutex_lock(&tty->termios_mutex);
|