NetBSD-Bugs archive

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

Re: kern/56276: exit hangs with vfork waiting



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

From: Michael van Elst <mlelstv%serpens.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost, mlelstv%netbsd.org@localhost
Subject: Re: kern/56276: exit hangs with vfork waiting
Date: Fri, 25 Jun 2021 09:16:31 +0200

 On Fri, Jun 25, 2021 at 05:35:01AM +0000, David Holland wrote:
 
 >  On Fri, Jun 25, 2021 at 04:30:01AM +0000, mlelstv%netbsd.org@localhost wrote:
 >   > When a process calls vfork(), it is suspended until the child exits
 >   > or calls execve().
 >   > 
 >   > When in this situation, a second thread of the parent calls exit()
 >   > the parent doesn't exit but waits uninterruptibly for the child.
 >  
 >  Shouldn't all threads be suspended for vfork? (as for regular fork)
 
 I would guess exit() races with vfork(). The second thread was almost
 done and waits for the other threads to finish so that it can then
 release the process resources.
 
 
 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index