aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-19 18:29:37 +0000
committerChristopher Faylor <me@cgf.cx>2002-10-19 18:29:37 +0000
commit1fc4df5a691c6faef6b70c1dc282b679e8977fd2 (patch)
treebc88bc7515074de5f16dce4d546214da3a5004d6
parent3350721cff0e46e2e3901f73da0301a56f2e6558 (diff)
downloadnewlib-1fc4df5a691c6faef6b70c1dc282b679e8977fd2.zip
newlib-1fc4df5a691c6faef6b70c1dc282b679e8977fd2.tar.gz
newlib-1fc4df5a691c6faef6b70c1dc282b679e8977fd2.tar.bz2
* fork.cc (fork_child): Move pinfo fixup later to attempt some minor gains from
concurrency from cythread::init.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fork.cc3
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a232919..bf82bac 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-19 Christopher Faylor <cgf@redhat.com>
+
+ * fork.cc (fork_child): Move pinfo fixup later to attempt some minor
+ gains from concurrency from cythread::init.
+
2002-10-18 Christopher Faylor <cgf@redhat.com>
* dcrt0.cc (dll_crt0_1): Initialize cygwin threads here only when not
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 729de1d..4cac097 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -284,8 +284,6 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
if (fixup_mmaps_after_fork (hParent))
api_fatal ("recreate_mmaps_after_fork_failed");
- pinfo_fixup_after_fork ();
-
MALLOC_CHECK;
/* If we haven't dynamically loaded any dlls, just signal
@@ -308,6 +306,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
api_fatal ("recreate_shm areas after fork failed");
cygthread::init ();
+ pinfo_fixup_after_fork ();
signal_fixup_after_fork ();
/* Set thread local stuff to zero. Under Windows 95/98 this is sometimes