* assert.cc (__assert): Call debugger on assertion failure if debugging.

* dcrt0.cc (dll_crt0_1): Just wait for signal thread to go live rather than
going through the overhead of invoking it.
* fork.cc (fork_child): Ditto.
* exceptions.cc (signal_fixup_after_fork): Call sigproc_init here.
* sigproc.cc (proc_can_be_signalled): Assume that the signal thread is live.
(sig_dispatch): Ditto.
(sig_send): Ditto.
(wait_for_sigthread): Renamed from "wait_for_me".  Assume that wait_sig_inited
has been set and that this function is only called from the main thread.
* winsup.h (wait_for_sigthread): Declare new function.
This commit is contained in:
Christopher Faylor
2002-08-11 19:19:29 +00:00
parent 2324fd5b91
commit 3cb62bd614
7 changed files with 41 additions and 25 deletions

View File

@@ -313,8 +313,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
user_data->threadinterface->fixup_after_fork ();
/* Initialize signal/process handling */
sigproc_init ();
wait_for_sigthread ();
__pthread_atforkchild ();
cygbench ("fork-child");
return 0;