PERFORCE change 67999 for review
David Xu
davidxu at FreeBSD.org
Fri Dec 31 07:13:36 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=67999
Change 67999 by davidxu at 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);
More information about the p4-projects
mailing list