--- jobs.c.orig 2005-09-10 12:40:49.000000000 -0700 +++ jobs.c 2005-09-10 12:41:13.000000000 -0700 @@ -2476,6 +2476,7 @@ PROCESS *child; pid_t pid; int call_set_current, last_stopped_job, job, children_exited, waitpid_flags; + static int wcontinued_not_supported = 0; call_set_current = children_exited = 0; last_stopped_job = NO_JOB; @@ -2489,7 +2490,15 @@ : 0; if (sigchld || block == 0) waitpid_flags |= WNOHANG; + retry: + if (wcontinued_not_supported) + waitpid_flags &= ~WCONTINUED; pid = WAITPID (-1, &status, waitpid_flags); + if (errno == EINVAL) + { + wcontinued_not_supported = 1; + goto retry; + } /* The check for WNOHANG is to make sure we decrement sigchld only if it was non-zero before we called waitpid. */