Handle SIGSTOP in addition to SIGTSTP. Fixes a problem with suspending
a shell with the "suspend" builtint.
This commit is contained in:
@@ -206,6 +206,7 @@ suspend_parent(int signo, struct script_buf *output)
|
|||||||
}
|
}
|
||||||
ttymode = TERM_RAW;
|
ttymode = TERM_RAW;
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
case SIGSTOP:
|
||||||
case SIGTSTP:
|
case SIGTSTP:
|
||||||
/* Flush any remaining output to master tty. */
|
/* Flush any remaining output to master tty. */
|
||||||
flush_output(output);
|
flush_output(output);
|
||||||
|
Reference in New Issue
Block a user