about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-09-25 18:09:13 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-09-25 18:09:13 +0000
commit748bd73d88ff777b6af0afd32934afb43b11ed6f (patch)
tree3b6366ff188fd0a8c4bc93eac4ed3f96ceb68ec0 /Src
parent6f2f2c7477792da58745e76d3e5c26221568f514 (diff)
downloadzsh-748bd73d88ff777b6af0afd32934afb43b11ed6f.tar.gz
zsh-748bd73d88ff777b6af0afd32934afb43b11ed6f.tar.xz
zsh-748bd73d88ff777b6af0afd32934afb43b11ed6f.zip
unposted: cross-reference zmodload from the modules intro doc.
29769: follow-up 29677 to handle the case where thisjob == -1.
Diffstat (limited to 'Src')
-rw-r--r--Src/signals.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/signals.c b/Src/signals.c
index dd39158d0..ad688094b 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -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");