1
1

Mark the proc as alive so waitpid callback system doesn't immediately activate the callback

Refs trac:4717

This commit was SVN r32026.

The following Trac tickets were found above:
  Ticket 4717 --> https://svn.open-mpi.org/trac/ompi/ticket/4717
Этот коммит содержится в:
Ralph Castain 2014-06-18 14:04:55 +00:00
родитель 8e7c0257f0
Коммит 3f032d39e8
3 изменённых файлов: 6 добавлений и 0 удалений

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

@ -558,6 +558,8 @@ static int plm_alps_start_proc(int argc, char **argv, char **env,
alpsrun = OBJ_NEW(orte_proc_t);
alpsrun->pid = alps_pid;
/* be sure to mark it as alive so we don't instantly fire */
ORTE_FLAG_SET(dummy, ORTE_PROC_FLAG_ALIVE);
/* setup the waitpid so we can find out if alps succeeds! */
orte_wait_cb(alpsrun, alps_wait_cb, NULL);

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

@ -594,6 +594,8 @@ static int plm_slurm_start_proc(int argc, char **argv, char **env,
/* setup a dummy proc object to track the srun */
dummy = OBJ_NEW(orte_proc_t);
dummy->pid = srun_pid;
/* be sure to mark it as alive so we don't instantly fire */
ORTE_FLAG_SET(dummy, ORTE_PROC_FLAG_ALIVE);
/* setup the waitpid so we can find out if srun succeeds! */
orte_wait_cb(dummy, srun_wait_cb, NULL);

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

@ -1534,6 +1534,8 @@ static int start_compression(orte_sstore_stage_local_snapshot_info_t *handle_inf
proc = OBJ_NEW(orte_proc_t);
proc->pid = app_info->compress_pid;
/* be sure to mark it as alive so we don't instantly fire */
ORTE_FLAG_SET(proc, ORTE_PROC_FLAG_ALIVE);
orte_wait_cb(proc, sstore_stage_local_compress_waitpid_cb, app_info);