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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-12-21 21:45:01 +0300
committerChristopher Faylor <me@cgf.cx>2004-12-21 21:45:01 +0300
commite85c18a8830a255e3a51004d8d34fae64c6b2ac6 (patch)
treec7e4e60775be9389115b3d346967911914f166c8 /winsup
parente0520ec4b76e5bc4bce9c8a6f3399033a79adc38 (diff)
* spawn.cc (spawn_guts): Force parent to forget about P_DETACH'ed process.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/spawn.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 62e112b27..fc3858b7f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-21 Christopher Faylor <cgf@timesys.com>
+
+ * spawn.cc (spawn_guts): Force parent to forget about P_DETACH'ed
+ process.
+
2004-12-20 Christopher Faylor <cgf@timesys.com>
* path.cc (normalize_win32_path): Remove unneeded check for dots.
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index f0187e23b..587c963cc 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -839,6 +839,8 @@ spawn_guts (const char * prog_arg, const char *const *argv,
However, we should try to find another way to do this eventually. */
(void) DuplicateHandle (hMainProc, child.shared_handle (), pi.hProcess,
NULL, 0, 0, DUPLICATE_SAME_ACCESS);
+ if (mode == _P_DETACH)
+ myself.alert_parent (0);
child->start_time = time (NULL); /* Register child's starting time. */
}