1
1

- Change the exit status set by mpirun when an application process is

killed by a signal.  The exit status is now set to signo + 128, which
  conforms with the behavior of (almost) all shells.

This commit was SVN r9050.
Этот коммит содержится в:
David Daniel 2006-02-15 22:41:29 +00:00
родитель 745ec1057f
Коммит e82c470b32

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

@ -412,7 +412,11 @@ int orterun(int argc, char *argv[])
if (WIFEXITED(orterun_globals.exit_status)) {
rc = WEXITSTATUS(orterun_globals.exit_status);
} else {
rc = WTERMSIG(orterun_globals.exit_status);
/* If a process was killed by a signal, then make the
* exit code of orterun be "signo + 128" so that "prog"
* and "orterun prog" will both set the same status
* value for the shell */
rc = WTERMSIG(orterun_globals.exit_status) + 128;
}
OPAL_THREAD_UNLOCK(&orterun_globals.lock);