1
1

It's actually ''not'' an error to exit if all routes and children are

gone.  So exit with 0, not ORTE_ERROR_DEFAULT_EXIT_CODE (which is 1).

This fixes a race condition in the rsh launcher upon termination,
where ORTE would sometimes think that a daemon failed to launch.

This commit was SVN r26935.
Этот коммит содержится в:
Jeff Squyres 2012-08-01 19:49:19 +00:00
родитель 05845214b8
Коммит 62c2ff7ee7

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

@ -282,12 +282,13 @@ static void proc_errors(int fd, short args, void *cbdata)
}
}
}
/* if all my routes and children are gone, then terminate ourselves */
/* if all my routes and children are gone, then terminate
ourselves nicely (i.e., this is a normal termination) */
if (0 == orte_routed.num_routes()) {
OPAL_OUTPUT_VERBOSE((2, orte_errmgr_base.output,
"%s errmgr:default:orted all routes gone - exiting",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
ORTE_TERMINATE(ORTE_ERROR_DEFAULT_EXIT_CODE);
ORTE_TERMINATE(0);
} else {
OPAL_OUTPUT_VERBOSE((2, orte_errmgr_base.output,
"%s errmgr:default:orted not exiting, num_routes() == %d",