diff options
| author | Martin Cracauer <cracauer@FreeBSD.org> | 2004-02-05 22:34:05 +0000 |
|---|---|---|
| committer | Martin Cracauer <cracauer@FreeBSD.org> | 2004-02-05 22:34:05 +0000 |
| commit | e637898ea811019f8eb5045df216fc4a8ec95e5c (patch) | |
| tree | b2f155e96f55f44e66ec03b7b23fc89711243e11 | |
| parent | b77a54a6883fc620aa82795b34b7378d21a99f83 (diff) | |
Notes
| -rw-r--r-- | bin/sh/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index 36b075c3b95b..1c7983543815 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -926,7 +926,7 @@ dowait(int block, struct job *job) pid = waitproc(block, &status); TRACE(("wait returns %d, status=%d\n", (int)pid, status)); } while ((pid == -1 && errno == EINTR && breakwaitcmd == 0) || - (WIFSTOPPED(status) && !iflag)); + (pid > 0 && WIFSTOPPED(status) && !iflag)); in_dowait--; if (breakwaitcmd != 0) { breakwaitcmd = 0; |
