about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-05-25 18:38:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-05-25 18:38:56 +0000
commit5ac05cab9f7bfcd5dc9b08a67e18ff5e317f8d1d (patch)
tree520a30f52d9a59c5749fe36b992784fa703e315a /Src/exec.c
parentbf4be466765b6f490b15981ecb308664c817535b (diff)
downloadzsh-5ac05cab9f7bfcd5dc9b08a67e18ff5e317f8d1d.tar.gz
zsh-5ac05cab9f7bfcd5dc9b08a67e18ff5e317f8d1d.tar.xz
zsh-5ac05cab9f7bfcd5dc9b08a67e18ff5e317f8d1d.zip
19976: fix spurious job table full messages
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index fe1415845..2af94f582 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -219,7 +219,7 @@ zfork(void)
     /*
      * Is anybody willing to explain this test?
      */
-    if (thisjob >= jobtabsize - 1 && !expandjobtab()) {
+    if (thisjob != -1 && thisjob >= jobtabsize - 1 && !expandjobtab()) {
 	zerr("job table full", NULL, 0);
 	return -1;
     }