about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/jobs.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c3bfbfea..054ebd245 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-03-14  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* users/13910: Src/jobs.c: spawnjob() should output job
+	information to the tty like printjob() does.
+
 	* 26699: Makefile.in: dependencies for config.modules.
 
 2009-03-14  Wayne Davison  <wayned@users.sourceforge.net>
@@ -11400,5 +11403,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4615 $                         
+* $Revision: 1.4616 $                         
 *****************************************************
diff --git a/Src/jobs.c b/Src/jobs.c
index 5edeecde6..666d90966 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -1380,11 +1380,11 @@ spawnjob(void)
 	} else if (prevjob == -1 || !(jobtab[prevjob].stat & STAT_STOPPED))
 	    prevjob = thisjob;
 	if (interact && jobbing && jobtab[thisjob].procs) {
-	    fprintf(stderr, "[%d]", thisjob);
+	    fprintf(shout, "[%d]", thisjob);
 	    for (pn = jobtab[thisjob].procs; pn; pn = pn->next)
-		fprintf(stderr, " %ld", (long) pn->pid);
-	    fprintf(stderr, "\n");
-	    fflush(stderr);
+		fprintf(shout, " %ld", (long) pn->pid);
+	    fprintf(shout, "\n");
+	    fflush(shout);
 	}
     }
     if (!hasprocs(thisjob))