about summary refs log tree commit diff
path: root/Src/jobs.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/jobs.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/jobs.c')
-rw-r--r--Src/jobs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index e6ce47113..ba3846654 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -904,6 +904,7 @@ addproc(pid_t pid, char *text, int aux)
     Process pn, *pnlist;
     struct timezone dummy_tz;
 
+    DPUTS(thisjob == -1, "No valid job in addproc.");
     pn = (Process) zshcalloc(sizeof *pn);
     pn->pid = pid;
     if (text)
@@ -1035,6 +1036,7 @@ void
 waitjobs(void)
 {
     Job jn = jobtab + thisjob;
+    DPUTS(thisjob == -1, "No valid job in waitjobs.");
 
     if (jn->procs || jn->auxprocs)
 	zwaitjob(thisjob, 0);
@@ -1129,6 +1131,7 @@ spawnjob(void)
 {
     Process pn;
 
+    DPUTS(thisjob == -1, "No valid job in spawnjob.");
     /* if we are not in a subshell */
     if (!subsh) {
 	if (curjob == -1 || !(jobtab[curjob].stat & STAT_STOPPED)) {