Handle SIGSTOP in addition to SIGTSTP. Fixes a problem with suspending

a shell with the "suspend" builtint.
This commit is contained in:
Todd C. Miller
2010-02-21 10:36:50 -05:00
parent d73e870e6f
commit ad4a07a44e

View File

@@ -206,6 +206,7 @@ suspend_parent(int signo, struct script_buf *output)
}
ttymode = TERM_RAW;
/* FALLTHROUGH */
case SIGSTOP:
case SIGTSTP:
/* Flush any remaining output to master tty. */
flush_output(output);