1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-03 20:51:07 +01:00

unposted: cross-reference zmodload from the modules intro doc.

29769: follow-up 29677 to handle the case where thisjob == -1.
This commit is contained in:
Bart Schaefer 2011-09-25 18:09:13 +00:00
parent 6f2f2c7477
commit 748bd73d88
3 changed files with 17 additions and 4 deletions

View file

@ -491,7 +491,9 @@ wait_for_processes(void)
*/
if (findproc(pid, &jn, &pn, 0)) {
if (((jn->stat & STAT_BUILTIN) ||
(list_pipe && (jobtab[thisjob].stat & STAT_BUILTIN))) &&
(list_pipe &&
(thisjob == -1 ||
(jobtab[thisjob].stat & STAT_BUILTIN)))) &&
WIFSTOPPED(status) && WSTOPSIG(status) == SIGTSTP) {
killjb(jn, SIGCONT);
zwarn("job can't be suspended");