* fork.cc (fork_child): Move fixup_shms_after_fork so that

signal_arrived is initialized when calling it.
This commit is contained in:
Corinna Vinschen 2004-02-17 21:17:25 +00:00
parent 720c33ae4c
commit a682de34be
2 changed files with 9 additions and 4 deletions

View 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.

View 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. */