Date: Fri, 31 Dec 2004 15:13:34 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67999 for review Message-ID: <200412311513.iBVFDY2K009942@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67999 Change 67999 by davidxu@davidxu_tiger on 2004/12/31 15:13:10 clear more fields in child process. use mutex_reinit(). Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_fork.c#5 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_fork.c#5 (text+ko) ==== @@ -57,7 +57,6 @@ sigset_t sigset, oldset; struct pthread *curthread; struct pthread_atfork *af; - struct pthread_mutex *m; pid_t ret; int errsave; @@ -88,7 +87,10 @@ /* Child process */ errsave = errno; - _thr_mutex_reinit(&_thr_atfork_mutex); + curthread->critical_count = 0; + curthread->locklevel = 0; + + _mutex_reinit(&_thr_atfork_mutex); /* Reinitialize lib kernel. */ _thr_single_thread(curthread);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412311513.iBVFDY2K009942>