summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-02-13 19:34:32 +0000
committerChristopher Faylor <me@cgf.cx>2004-02-13 19:34:32 +0000
commitedc4f86ad282702ab7c029cf65b87ec616bda05e (patch)
tree2abde4171eaab1863d78128ba2ef6418485eff57 /winsup/cygwin/spawn.cc
parentb3535c273043da91247840c4af64bb573d5517c4 (diff)
downloadcygnal-edc4f86ad282702ab7c029cf65b87ec616bda05e.tar.gz
cygnal-edc4f86ad282702ab7c029cf65b87ec616bda05e.tar.bz2
cygnal-edc4f86ad282702ab7c029cf65b87ec616bda05e.zip
* Makefile.in (clean): Remove sigfe.s.
(sigfe.s): Ensure that sigfe.s will be regenerated if it does not exist. * dll_init.cc (dll_dllcrt0): Simplify initializing tests. * exceptions.cc (setup_handler): Detect when stub caller is either spinning or has acquired the lock after being suspended to avoid windows problems with suspending a win32 API call. * cygtls.h (_cygtls::spinning): Declare new element. * gendef: Remove unused _siglist_index and _siglist declaration. (_sigfe): Set spinning element when potentially looping, waiting for lock. (_sigbe): Ditto. (_cygtls::lock): Ditto. (_longjmp): Ditto. * tlsoffsets.h: Regenerate. * pinfo.cc (_pinfo::exit): Set final exit state here. Call sigproc_terminate if invoked with 'norecord'. Clear any residual _cygtls stuff. * winsup.h (exit_states): Define ES_FINAL. * spawn.cc (spawn_guts): Don't call proc_terminate specifically when execing. Let _pinfo::exit handle that case. * sigproc.cc (wait_subproc): Always exit loop early when proc_loop_wait. * init.cc (munge_threadfunc): Eliminate unused argument. (dll_entry): Reflect above change in call to munge_threadfunc.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 7f6231e14..992bad1ab 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -745,7 +745,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
(void) sigprocmask (SIG_BLOCK, &child_block, &cleanup.oldmask);
}
- /* Fixup the parent datastructure if needed and resume the child's
+ /* Fixup the parent data structures if needed and resume the child's
main thread. */
if (!cygheap->fdtab.need_fixup_before ())
cygheap_setup_for_child_cleanup (newheap, &ciresrv, 0);
@@ -908,7 +908,6 @@ spawn_guts (const char * prog_arg, const char *const *argv,
{
case _P_OVERLAY:
ForceCloseHandle1 (pi.hProcess, childhProc);
- proc_terminate ();
myself->exit (res, 1);
break;
case _P_WAIT: