diff options
author | Christopher Faylor <me@cgf.cx> | 2000-11-06 09:36:32 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-11-06 09:36:32 +0300 |
commit | dd11f11faee36b8999cd6a7d56318e3be289f897 (patch) | |
tree | a922d160ecb185296abe958a65beff004280e47b /winsup/cygwin/dcrt0.cc | |
parent | e0997f5a0f47ef8af016a6358ebfadbb161c8c56 (diff) |
* child_info.h (child_info): Add pppid_handle for closing the parent's of the
parent handle.
* dcrt0.cc (_dll_crt0): Close parent's parent handle when spawned or forked.
* debug.cc (add_handle): Correct erroneous reference to handle structure when
printing warning.
* exceptions.cc (interrupt_now): Always return 1.
(interrupt_on_return): Accept a sigthread argument. Check to see if this
argument has been trashed prior to setting up the stack return.
(call_handler): Add a loop around attempts to dispatch signals to detect case
where interrupt_on_return fails.
(_sigdelayed): Set up a temporary frame pointer prior to calling stuff that
could trigger an interrupt or the stack walking code will be very confused.
* fork.cc (fork_parent): Move a lot of the setup of the child process into
proc_subproc.
* spawn.cc (spawn_guts): Ditto. Use ppid_handle to contact logical parent when
reparenting.
* pinfo.h (_pinfo): Remember the logical handle of the parent process.
* sigproc.cc (proc_subproc): Record most stuff necessary for the _pinfo
structure that is inferrable from myself when adding children.
(wait_sig): Always set 'pending_signals' flag when about to kick off the signal
scanning loop. Reset it only if there are no pending signals.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 56873b165..faa7cfa6e 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -898,8 +898,9 @@ _dll_crt0 () case PROC_FORK: case PROC_FORK1: user_data->forkee = fork_info->cygpid; - case PROC_EXEC: case PROC_SPAWN: + CloseHandle (fork_info->pppid_handle); + case PROC_EXEC: { child_proc_info = fork_info; mypid = child_proc_info->cygpid; |