Dead children have no pid
This commit was SVN r24387.
Этот коммит содержится в:
родитель
a3607ff35d
Коммит
c1da94a444
@ -2915,6 +2915,7 @@ int orte_odls_base_default_kill_local_procs(opal_pointer_array_t *procs,
|
|||||||
* it already hasn't
|
* it already hasn't
|
||||||
*/
|
*/
|
||||||
child->waitpid_recvd = true;
|
child->waitpid_recvd = true;
|
||||||
|
child->pid = 0;
|
||||||
goto CLEANUP;
|
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
|
* fire as soon as we kill it
|
||||||
*/
|
*/
|
||||||
child->state = ORTE_PROC_STATE_KILLED_BY_CMD; /* we ordered it to die */
|
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
|
/* ensure the stdin IOF channel for this child is closed. The other
|
||||||
* channels will automatically close when the proc is killed
|
* 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;
|
child->waitpid_recvd = true;
|
||||||
/* ensure the process is flagged as "not alive" */
|
/* ensure the process is flagged as "not alive" */
|
||||||
child->alive = false;
|
child->alive = false;
|
||||||
|
child->pid = 0;
|
||||||
|
|
||||||
CLEANUP:
|
CLEANUP:
|
||||||
/* ensure the child's session directory is cleaned up */
|
/* ensure the child's session directory is cleaned up */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user