summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Cracauer <cracauer@FreeBSD.org>2004-02-05 22:34:05 +0000
committerMartin Cracauer <cracauer@FreeBSD.org>2004-02-05 22:34:05 +0000
commite637898ea811019f8eb5045df216fc4a8ec95e5c (patch)
treeb2f155e96f55f44e66ec03b7b23fc89711243e11
parentb77a54a6883fc620aa82795b34b7378d21a99f83 (diff)
Notes
-rw-r--r--bin/sh/jobs.c2
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;