diff options
author | Chet Ramey <chet.ramey@case.edu> | 2016-08-22 15:58:43 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2016-08-22 15:58:43 -0400 |
commit | 955543877583837c85470f7fb8a97b7aa8d45e6c (patch) | |
tree | b239e7c3983a9189b8f0104854ee82283c5807ab /nojobs.c | |
parent | a4eef1991c25c9d1c55f777952cd522c762c6fc3 (diff) | |
download | bash-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.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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; |