Author: davidxu
Date: Thu Aug 23 05:15:15 2012
New Revision: 239609
URL: http://svn.freebsd.org/changeset/base/239609

Log:
  Eliminate redundant code, _thr_spinlock_init() has already been called
  in init_private(), don't call it again in fork() wrapper.

Modified:
  head/lib/libthr/thread/thr_fork.c

Modified: head/lib/libthr/thread/thr_fork.c
==============================================================================
--- head/lib/libthr/thread/thr_fork.c   Thu Aug 23 04:57:56 2012        
(r239608)
+++ head/lib/libthr/thread/thr_fork.c   Thu Aug 23 05:15:15 2012        
(r239609)
@@ -200,9 +200,6 @@ _fork(void)
                        _rtld_atfork_post(rtld_locks);
                _thr_setthreaded(0);
 
-               /* reinitialize libc spinlocks. */
-               _thr_spinlock_init();
-
                /* reinitalize library. */
                _libpthread_init(curthread);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to