OSDN Git Service

* thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork at
authorcgf <cgf>
Mon, 29 Mar 2004 15:14:07 +0000 (15:14 +0000)
committercgf <cgf>
Mon, 29 Mar 2004 15:14:07 +0000 (15:14 +0000)
the end of atforkprepare.

winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc

index 694396a..ec81ae8 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-29  Thomas Pfaff  <tpfaff@gmx.net>
+
+       * thread.cc (pthread::atforkprepare): Call
+       MT_INTERFACE->fixup_before_fork at the end of atforkprepare.
+
 2004-03-29  Corinna Vinschen  <corinna@vinschen.de>
 
        * net.cc (wsock_event::wait): Change scope of local "len" variable.
index 11a9d06..a18834d 100644 (file)
@@ -1941,8 +1941,6 @@ pthread::cancel (pthread_t thread)
 void
 pthread::atforkprepare (void)
 {
-  MT_INTERFACE->fixup_before_fork ();
-
   callback *cb = MT_INTERFACE->pthread_prepare;
   while (cb)
     {
@@ -1951,6 +1949,8 @@ pthread::atforkprepare (void)
     }
 
   __fp_lock_all ();
+
+  MT_INTERFACE->fixup_before_fork ();
 }
 
 void