From d885155bae9b6b6f65d988e4e87d5597a53ba1c6 Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Wed, 20 Apr 2005 15:57:06 +0000 Subject: [PATCH] comments This commit was SVN r5475. --- src/mca/pls/fork/pls_fork_module.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mca/pls/fork/pls_fork_module.c b/src/mca/pls/fork/pls_fork_module.c index 69951ec3d9..746201a428 100644 --- a/src/mca/pls/fork/pls_fork_module.c +++ b/src/mca/pls/fork/pls_fork_module.c @@ -211,7 +211,10 @@ static int orte_pls_fork_proc( return rc; } - /* wait for the child process */ + /* wait for the child process - dont register for wait callback until + * after I/O is setup and the pid registered - otherwise can receive the + * wait callback before the above is ever completed + */ OMPI_THREAD_LOCK(&mca_pls_fork_component.lock); mca_pls_fork_component.num_children++; OMPI_THREAD_UNLOCK(&mca_pls_fork_component.lock);