From c1da94a444eb97ebfe0a598be7dc4db5863f8e96 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 15 Feb 2011 13:30:51 +0000 Subject: [PATCH] Dead children have no pid This commit was SVN r24387. --- orte/mca/odls/base/odls_base_default_fns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 844870559e..64f5e0b7b7 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -2915,6 +2915,7 @@ int orte_odls_base_default_kill_local_procs(opal_pointer_array_t *procs, * it already hasn't */ child->waitpid_recvd = true; + child->pid = 0; goto CLEANUP; } @@ -2922,7 +2923,7 @@ int orte_odls_base_default_kill_local_procs(opal_pointer_array_t *procs, * fire as soon as we kill it */ child->state = ORTE_PROC_STATE_KILLED_BY_CMD; /* we ordered it to die */ - + /* ensure the stdin IOF channel for this child is closed. The other * channels will automatically close when the proc is killed */ @@ -2984,6 +2985,7 @@ int orte_odls_base_default_kill_local_procs(opal_pointer_array_t *procs, child->waitpid_recvd = true; /* ensure the process is flagged as "not alive" */ child->alive = false; + child->pid = 0; CLEANUP: /* ensure the child's session directory is cleaned up */