OSDN Git Service

* fork.cc (fork_child): Move fixup_shms_after_fork so that
authorcorinna <corinna>
Tue, 17 Feb 2004 21:17:25 +0000 (21:17 +0000)
committercorinna <corinna>
Tue, 17 Feb 2004 21:17:25 +0000 (21:17 +0000)
signal_arrived is initialized when calling it.

winsup/cygwin/ChangeLog
winsup/cygwin/fork.cc

index 90d2cb5..b048677 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-17  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fork.cc (fork_child): Move fixup_shms_after_fork so that
+       signal_arrived is initialized when calling it.
+
 2004-02-17  Christopher Faylor  <cgf@redhat.com>
 
        * Makefile.in (clean): Clean libserver, too.
index 5b5f66d..b8cd3ed 100644 (file)
@@ -300,15 +300,15 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
   (void) ForceCloseHandle1 (fork_info->subproc_ready, subproc_ready);
   (void) ForceCloseHandle1 (fork_info->forker_finished, forker_finished);
 
+  pinfo_fixup_after_fork ();
+  _my_tls.fixup_after_fork ();
+  sigproc_init ();
+
 #ifdef USE_SERVER
   if (fixup_shms_after_fork ())
     api_fatal ("recreate_shm areas after fork failed");
 #endif
 
-  pinfo_fixup_after_fork ();
-  _my_tls.fixup_after_fork ();
-  sigproc_init ();
-
   /* Set thread local stuff to zero.  Under Windows 95/98 this is sometimes
      non-zero, for some reason.
      FIXME:  There is a memory leak here after a fork. */