1
1

plm/alps: fix orte_wait_cb() usage

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2017-11-30 13:49:22 +09:00
родитель 8f496b01b7
Коммит 8e17127258

Просмотреть файл

@ -14,6 +14,8 @@
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights * Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved. * Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
* Copyright (c) 2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -578,7 +580,7 @@ static int plm_alps_start_proc(int argc, char **argv, char **env,
/* be sure to mark it as alive so we don't instantly fire */ /* be sure to mark it as alive so we don't instantly fire */
ORTE_FLAG_SET(alpsrun, ORTE_PROC_FLAG_ALIVE); ORTE_FLAG_SET(alpsrun, ORTE_PROC_FLAG_ALIVE);
/* setup the waitpid so we can find out if alps succeeds! */ /* setup the waitpid so we can find out if alps succeeds! */
orte_wait_cb(alpsrun, alps_wait_cb, NULL); orte_wait_cb(alpsrun, alps_wait_cb, orte_event_base, NULL);
if (0 == alps_pid) { /* child */ if (0 == alps_pid) { /* child */
char *bin_base = NULL, *lib_base = NULL; char *bin_base = NULL, *lib_base = NULL;