Searched hist:266609 (Results 1 - 1 of 1) sorted by relevance
/freebsd-11-stable/libexec/rtld-elf/ | ||
H A D | rtld_lock.c | diff 266609 Sat May 24 08:27:27 MDT 2014 kib Right now, the rtld prefork hook locks the rtld bind lock in the read mode. This allows the binder to be functional in the child after the fork (assuming no lazy loading of a filter is needed), but other rtld services which require write lock on rtld_bind_lock cause deadlock, if called by child. Change the _rtld_atfork() to lock the bind lock in write mode, making the rtld fully functional after the fork. Pre-resolve the symbols which are called by the libthr' fork() interposer, since dynamic resolution causes deadlock due to the rtld_bind_lock already owned in the write mode. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks |
Completed in 65 milliseconds