]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Forcibly unlock the malloc() locks in the child process after fork(),
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 19 Mar 2009 10:32:25 +0000 (10:32 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 19 Mar 2009 10:32:25 +0000 (10:32 +0000)
commit29986e1bac92a068da1db1d7e68eb031e4fc49a7
treea0450674c2c0d99069b790fb48baa2337ceb6d84
parent839205949216ed4e0ae8df89ab24af3ccfce39e2
Forcibly unlock the malloc() locks in the child process after fork(),
by temporary pretending that the process is still multithreaded.
Current malloc lock primitives do nothing for singlethreaded process.

Reviewed by: davidxu, deischen
lib/libthr/thread/thr_fork.c