- 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.
Этот коммит содержится в:
родитель
745ec1057f
Коммит
e82c470b32
@ -412,7 +412,11 @@ int orterun(int argc, char *argv[])
|
|||||||
if (WIFEXITED(orterun_globals.exit_status)) {
|
if (WIFEXITED(orterun_globals.exit_status)) {
|
||||||
rc = WEXITSTATUS(orterun_globals.exit_status);
|
rc = WEXITSTATUS(orterun_globals.exit_status);
|
||||||
} else {
|
} 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);
|
OPAL_THREAD_UNLOCK(&orterun_globals.lock);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user