bin/66242: endless loop in sh(1)

Zherdev Anatoly tolyar at mx.ru
Thu May 6 00:40:20 PDT 2004


The following reply was made to PR bin/66242; it has been noted by GNATS.

From: Zherdev Anatoly <tolyar at mx.ru>
To: FreeBSD-gnats-submit at 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.


More information about the freebsd-bugs mailing list