From e85c18a8830a255e3a51004d8d34fae64c6b2ac6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 21 Dec 2004 18:45:01 +0000 Subject: * spawn.cc (spawn_guts): Force parent to forget about P_DETACH'ed process. --- winsup/cygwin/spawn.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/spawn.cc') 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. */ } -- cgit v1.2.3