summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-07 09:28:26 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-07 09:28:26 -0500
commit48ff544772dfa6b8fa3dda69361a5d64a9b0cbcd (patch)
tree6fdd9ddec685a88bd9d1bb4c9089f04134f2652e /jobs.c
parent40c8fbee93dca4d4d43a18d5fb3202fa2db2ae49 (diff)
downloadbash-48ff544772dfa6b8fa3dda69361a5d64a9b0cbcd.tar.gz
commit bash-20080904 snapshot
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jobs.c b/jobs.c
index a7892c2f..4a5a5acf 100644
--- a/jobs.c
+++ b/jobs.c
@@ -67,6 +67,7 @@
#include "bashintl.h"
#include "shell.h"
#include "jobs.h"
+#include "execute_cmd.h"
#include "flags.h"
#include "builtins/builtext.h"
@@ -843,6 +844,7 @@ cleanup_dead_jobs ()
static int
processes_in_job (job)
+ int job;
{
int nproc;
register PROCESS *p;
@@ -1685,6 +1687,8 @@ make_child (command, async_p)
making_children ();
+ forksleep = 1;
+
#if defined (BUFFERED_INPUT)
/* If default_buffered_input is active, we are reading a script. If
the command is asynchronous, we have already duplicated /dev/null