NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/57527: system() waits for last child if SIG_CHLD is ignored



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

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/57527: system() waits for last child if SIG_CHLD is ignored
Date: Sat, 15 Jul 2023 20:46:43 +0000

 On Sat, Jul 15, 2023 at 08:05:02PM +0000, Taylor R Campbell wrote:
  >  However, it doesn't seem to address the possibility of changing
  >  SIGCHLD to SIG_DFL if and only if it was already set to SIG_IGN, if
  >  I'm reading it correctly.  So maybe the attached patch will resolve
  >  the issue in system(3)?
 
 It's worse than that; you could race with another thread setting
 SIG_IGN.
 
 Maybe that gets into "don't do that" territory though.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index