]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unlock the malloc() locks in the child process after fork(). This gives
authorkib <kib@FreeBSD.org>
Sat, 29 Nov 2008 21:46:28 +0000 (21:46 +0000)
committerkib <kib@FreeBSD.org>
Sat, 29 Nov 2008 21:46:28 +0000 (21:46 +0000)
commit58f888b28c6991ea1def089a22338da9dec097c3
treee7d65ff8625eb6c6eb857a67c7cc3ccf4c921bd0
parent3e94b73b94aaf0d6f7e3baf4830e4185f90142fa
Unlock the malloc() locks in the child process after fork(). This gives
us working malloc in the fork child of the multithreaded process.

Although POSIX requires that only async-signal safe functions shall be
operable after fork in multithreaded process, not having malloc lower
the quality of our implementation.

Tested by: rink
Discussed with: kan, davidxu
Reviewed by: kan
MFC after: 1 month
lib/libthr/thread/thr_fork.c