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
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