diff options
author | Christopher Faylor <me@cgf.cx> | 2004-09-12 03:47:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-09-12 03:47:57 +0000 |
commit | d584454c8231f5811136b1ab88defe6e5ca81923 (patch) | |
tree | 895b902952e3c3d4e329703af6ccc29275b9fec5 /winsup/cygwin/exceptions.cc | |
parent | ca5ec6685a79620c1e24d2ca19081ee4f432b316 (diff) | |
download | cygnal-d584454c8231f5811136b1ab88defe6e5ca81923.tar.gz cygnal-d584454c8231f5811136b1ab88defe6e5ca81923.tar.bz2 cygnal-d584454c8231f5811136b1ab88defe6e5ca81923.zip |
* exceptions.cc: (ctrl_c_handler): Do nothing while a Cygwin subprocess is
starting.
* child_info.h (init_child_info): Remove pid argument from declaration.
* cygheap.h (init_cygheap::pid): New element.
* dcrt0.cc (dll_crt0_0): Eliminate handling of now-noexistent cygpid parameter
in child_info struct. Set forkee to 'true' rather than cygpid since the pid
value was never used.
(dll_crt0_1): Ditto.
(_dll_crt0): Ditto.
* fork.cc (fork_child): Don't wait for sigthread. This is handled in the fork
call now.
(fork_parent): Remove obsolete pid argument from init_child_info call. Don't
do anything special with cygpid when DEBUGGING.
(fork): Delay all signals during fork.
(fork_init): Don't do anything special when DEBUGGING.
* pinfo.cc (set_myself): Remove pid parameter. Use new pid field in cygheap.
(pinfo_init): Don't pass pid argument to set_myself.
* sigproc.cc (sig_send): Wait for dwProcessId to be non-zero as well as
sendsig.
(init_child_info): Eliminate handling of pid.
(wait_sig): Implement method to temporarily hold off sending signals.
* sigproc.h (__SIGHOLD): New enum.
(__SIGNOHOLD): Ditto.
* spawn.cc (spawn_guts): Remove obsolete pid argument from init_child_info
call.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 64846553a..1a065f720 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -805,6 +805,8 @@ ctrl_c_handler (DWORD type) if (!cygwin_finished_initializing) { + if (myself->ppid_handle) /* Was this process created by a cygwin process? */ + return TRUE; /* Yes. Let the parent eventually handle CTRL-C issues. */ debug_printf ("exiting with status %p", STATUS_CONTROL_C_EXIT); ExitProcess (STATUS_CONTROL_C_EXIT); } |