1 diff -Naur bash-3.0.orig/jobs.c bash-3.0/jobs.c
2 --- ./jobs.c 2004-10-12 08:50:11.643481280 +0000
3 +++ ./jobs.c 2004-10-12 08:51:35.110792320 +0000
7 int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
8 + static int wcontinued_not_supported = 0;
10 call_set_current = children_exited = 0;
11 last_stopped_job = NO_JOB;
12 @@ -2489,7 +2490,15 @@
14 if (sigchld || block == 0)
15 waitpid_flags |= WNOHANG;
17 + if (wcontinued_not_supported)
18 + waitpid_flags &= ~WCONTINUED;
19 pid = WAITPID (-1, &status, waitpid_flags);
20 + if (pid == -1 && errno == EINVAL)
22 + wcontinued_not_supported = 1;
26 /* The check for WNOHANG is to make sure we decrement sigchld only
27 if it was non-zero before we called waitpid. */