Date: Thu, 6 May 2004 00:40:19 -0700 (PDT) From: Zherdev Anatoly <tolyar@mx.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/66242: endless loop in sh(1) Message-ID: <200405060740.i467eJHU073117@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/66242; it has been noted by GNATS.
From: Zherdev Anatoly <tolyar@mx.ru>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: Re: bin/66242: endless loop in sh(1)
Date: Thu, 6 May 2004 11:37:40 +0400
This patch solves the problem for me:
--- jobs.c.orig Fri Apr 30 15:10:48 2004
+++ jobs.c Thu May 6 10:50:17 2004
@@ -928,6 +928,8 @@
} while ((pid == -1 && errno == EINTR && breakwaitcmd == 0) ||
(WIFSTOPPED(status) && !iflag));
in_dowait--;
+ if (pid == -1 && errno == ECHILD)
+ job->state= JOBDONE;
if (breakwaitcmd != 0) {
breakwaitcmd = 0;
return -1;
--
Zherdev Anatoly.
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405060740.i467eJHU073117>
