Strange hang when calling signal()

Eric van Gyzen eric at vangyzen.net
Fri Aug 24 19:10:47 UTC 2018


On 8/24/18 1:53 PM, Konstantin Belousov wrote:
> Since then, we started locking most of that locks in parent around fork(2),
> all the code in lib/libthr/thread/thr_fork.c.  In particular, we lock rtld,
> malloc, and disable cancellation around fork.  So if your program used fork(2)
> but ended with the broken rtld it is worrying.
> 
> On the other hand, we do not do that for vfork(2).  So yes, the minimal

We also do not do that for rfork(2).  I think we should, but I have not 
done any research into it.

Eric


More information about the freebsd-hackers mailing list