Skip to content

Commit a4755b6

Browse files
committed
odls/pspawn: record the pid of the spawn'ed process
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 4225b89 commit a4755b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

orte/mca/odls/pspawn/odls_pspawn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ static int odls_pspawn_fork_local_proc(void *cdptr)
362362
}
363363

364364
cd->child->state = ORTE_PROC_STATE_RUNNING;
365+
cd->child->pid = pid;
365366
ORTE_FLAG_SET(cd->child, ORTE_PROC_FLAG_ALIVE);
366367
return ORTE_SUCCESS;
367368
}

0 commit comments

Comments
 (0)