+2005-06-15 Christopher Faylor <cgf@timesys.com>
+
+ * cygthread.cc (cygthread::detach): Fix debugging output.
+ * dcrt0.cc (dll_crt0_1): Create signal_arrived early -- before any
+ filename manipulation.
+ * sigproc.cc (sigproc_init): Don't create signal_arrived here.
+ * fork.cc (fork_child): Ditto.
+
2005-06-14 Christopher Faylor <cgf@timesys.com>
* path.cc (path_conv::check): Always reset to FH_FS when component != 0
case WAIT_TIMEOUT:
break;
default:
- system_printf ("%s handle %p is bad", j ? "semaphore" : "signal_arrived", w4[j]);
+ system_printf ("%s handle %p is bad", (j ? "signal_arrived" : "semaphore"), w4[j]);
break;
}
api_fatal ("exiting on fatal error");
strace.microseconds ();
#endif
+ create_signal_arrived ();
+
/* Initialize debug muto, if DLL is built with --enable-debugging.
Need to do this before any helper threads start. */
debug_init ();
{
extern void fixup_hooks_after_fork ();
extern void fixup_timers_after_fork ();
- extern void __stdcall create_signal_arrived ();
debug_printf ("child is running. pid %d, ppid %d, stack here %p",
myself->pid, myself->ppid, __builtin_frame_address (0));
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
*/
sync_proc_subproc.init ("sync_proc_subproc");
- create_signal_arrived ();
-
hwait_sig = new cygthread (wait_sig, cygself, "sig");
hwait_sig->zap_h ();
void __stdcall signal_fixup_after_exec ();
void __stdcall wait_for_sigthread ();
void __stdcall sigalloc ();
+void __stdcall create_signal_arrived ();
int kill_pgrp (pid_t, siginfo_t&);
int killsys (pid_t, int);