diff options
author | Christopher Faylor <me@cgf.cx> | 2004-03-29 19:14:07 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-03-29 19:14:07 +0400 |
commit | c7f060d0dae9beff62f3280addb4afaa4d4f7399 (patch) | |
tree | f6ff456a4812fa551113d09794681a9b44f54ae1 /winsup | |
parent | 2b2cc75f6b5ba4b347207b8e5a136d0b8b0413cc (diff) |
* thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork at
the end of atforkprepare.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/thread.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 694396a2f..ec81ae8a1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 11a9d0629..a18834ddf 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 |