aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/thread.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-03-29 15:14:07 +0000
committerChristopher Faylor <me@cgf.cx>2004-03-29 15:14:07 +0000
commitc7f060d0dae9beff62f3280addb4afaa4d4f7399 (patch)
treef6ff456a4812fa551113d09794681a9b44f54ae1 /winsup/cygwin/thread.cc
parent2b2cc75f6b5ba4b347207b8e5a136d0b8b0413cc (diff)
downloadnewlib-c7f060d0dae9beff62f3280addb4afaa4d4f7399.zip
newlib-c7f060d0dae9beff62f3280addb4afaa4d4f7399.tar.gz
newlib-c7f060d0dae9beff62f3280addb4afaa4d4f7399.tar.bz2
* thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork at
the end of atforkprepare.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 11a9d06..a18834d 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -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