Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-14 07:32:01 +0400
committerChristopher Faylor <me@cgf.cx>2002-10-14 07:32:01 +0400
commit82fc7120754316442bbcd268170ad46bfa23b698 (patch)
tree8099c962b463e54ac746ce971d343811e7fab962
parentbfaa0919cbd75417d021c3cc75b307d1236e5e2b (diff)
* spawn.cc (spawn_guts): Fix so that cygthread::terminate is *really* calledunlabeled-1.116.4
only for exec. * cygthread.cc (cygthread::stub): Don't zero __name here. That introduces a race.
-rw-r--r--winsup/cygwin/spawn.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index b3bf304fb..6bc76fba3 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -715,8 +715,10 @@ spawn_guts (const char * prog_arg, const char *const *argv,
cygheap->fdtab.fixup_before_exec (pi.dwProcessId);
cygheap_setup_for_child_cleanup (newheap, &ciresrv, 1);
if (mode == _P_OVERLAY)
- ResumeThread (pi.hThread);
- cygthread::terminate ();
+ {
+ ResumeThread (pi.hThread);
+ cygthread::terminate ();
+ }
}
if (mode != _P_OVERLAY)