summaryrefslogtreecommitdiff
path: root/nojobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2016-08-22 15:58:43 -0400
committerChet Ramey <chet.ramey@case.edu>2016-08-22 15:58:43 -0400
commit955543877583837c85470f7fb8a97b7aa8d45e6c (patch)
treeb239e7c3983a9189b8f0104854ee82283c5807ab /nojobs.c
parenta4eef1991c25c9d1c55f777952cd522c762c6fc3 (diff)
downloadbash-4.4-testing.tar.gz
bash-4.4-rc2 releasebash-4.4-rc2bash-4.4-testing
Diffstat (limited to 'nojobs.c')
-rw-r--r--nojobs.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/nojobs.c b/nojobs.c
index 95b7465c..fdbe0ae0 100644
--- a/nojobs.c
+++ b/nojobs.c
@@ -639,12 +639,13 @@ get_original_tty_job_signals ()
/* Wait for a single pid (PID) and return its exit status. Called by
the wait builtin. */
int
-wait_for_single_pid (pid)
+wait_for_single_pid (pid, flags)
pid_t pid;
+ int flags;
{
pid_t got_pid;
WAIT status;
- int pstatus, flags;
+ int pstatus;
pstatus = find_status_by_pid (pid);
@@ -995,6 +996,14 @@ stop_making_children ()
already_making_children = 0;
}
+/* The name is kind of a misnomer, but it's what the job control code uses. */
+void
+without_job_control ()
+{
+ stop_making_children ();
+ last_made_pid = NO_PID; /* XXX */
+}
+
int
get_job_by_pid (pid, block)
pid_t pid;