Clarify method used to translate application proc termination codes to exit status codes
This commit was SVN r17899.
Этот коммит содержится в:
родитель
2bf4784893
Коммит
c2fd5dd416
@ -1558,8 +1558,12 @@ GOTCHILD:
|
|||||||
child->state = ORTE_PROC_STATE_ABORTED_BY_SIG;
|
child->state = ORTE_PROC_STATE_ABORTED_BY_SIG;
|
||||||
/* If a process was killed by a signal, then make the
|
/* If a process was killed by a signal, then make the
|
||||||
* exit code of orterun be "signo + 128" so that "prog"
|
* exit code of orterun be "signo + 128" so that "prog"
|
||||||
* and "orterun prog" will both set the same status
|
* and "orterun prog" will both yield the same exit code.
|
||||||
* value for the shell
|
*
|
||||||
|
* This is actually what the shell does for you when
|
||||||
|
* a process dies by signal, so this makes orterun treat
|
||||||
|
* the termination code to exit status translation the
|
||||||
|
* same way
|
||||||
*/
|
*/
|
||||||
child->exit_code = WTERMSIG(status) + 128;
|
child->exit_code = WTERMSIG(status) + 128;
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user