summaryrefslogtreecommitdiff
path: root/nojobs.c
diff options
context:
space:
mode:
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;