summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2003-01-19 17:41:52 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2003-01-19 17:41:52 +0000
commitd3269e48beba8e3434f49bd0e379e6ba26fe048b (patch)
tree7286b4c63cb91188b072b25ad6e2ba9cafa9ad0e /ace
parenteac4436d44026c8e8e10704bce219256f48bc403 (diff)
downloadATCD-d3269e48beba8e3434f49bd0e379e6ba26fe048b.tar.gz
ChangeLogTag:Sun Jan 19 11:40:10 2003 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/Process_Manager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
index dfd91fbe852..208c3234e6c 100644
--- a/ace/Process_Manager.cpp
+++ b/ace/Process_Manager.cpp
@@ -409,7 +409,11 @@ ACE_Process_Manager::spawn (ACE_Process_Options &options)
ACE_Managed_Process,
ACE_INVALID_PID);
- return spawn (process, options);
+ pid_t pid = spawn (process, options);
+ if (pid == ACE_INVALID_PID || pid == 0)
+ delete process;
+
+ return pid;
}
// Create a new process.