* sigproc.cc (create_signal_arrive): New (temporary?) function to create

signal_arrived event.
(sigproc_init): Use create_signal_arrived.
* fork.cc (fork_child): Create signal_arrived early.
This commit is contained in:
Christopher Faylor
2005-04-01 15:27:52 +00:00
parent b6e69d53f6
commit d0bed66e45
3 changed files with 27 additions and 10 deletions

View File

@ -156,6 +156,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
{
extern void fixup_hooks_after_fork ();
extern void fixup_timers_after_fork ();
extern void create_signal_arrived ();
debug_printf ("child is running. pid %d, ppid %d, stack here %p",
myself->pid, myself->ppid, __builtin_frame_address (0));
@ -199,6 +200,8 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
if (fixup_mmaps_after_fork (hParent))
api_fatal ("recreate_mmaps_after_fork_failed");
create_signal_arrived ();
#ifdef USE_SERVER
/* Incredible but true: If we use sockets and SYSV IPC shared memory,
there's a good chance that a duplicated socket in the child occupies