From c2fd5dd416739de2e9ecdeef8bdd49cc71062c68 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 20 Mar 2008 18:50:05 +0000 Subject: [PATCH] Clarify method used to translate application proc termination codes to exit status codes This commit was SVN r17899. --- orte/mca/odls/base/odls_base_default_fns.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 9f57945bfd..121dfe6990 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -1558,8 +1558,12 @@ GOTCHILD: child->state = ORTE_PROC_STATE_ABORTED_BY_SIG; /* 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 + * and "orterun prog" will both yield the same exit code. + * + * 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;