From ccff0a6e65bd8ec2dcc6a3e635f93dee374386ed Mon Sep 17 00:00:00 2001 From: Pak Lui Date: Wed, 7 Feb 2007 17:46:19 +0000 Subject: [PATCH] * minor fix to correct the pid that always shows up as 0 in the abort error message. e.g: mpirun noticed that job rank 2 with PID 0 on node burl-ct-v440-4 exited on signal 15 (Terminated). This commit was SVN r13537. --- orte/tools/orterun/orterun.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/orte/tools/orterun/orterun.c b/orte/tools/orterun/orterun.c index 68ac51a87f..620eacdf99 100644 --- a/orte/tools/orterun/orterun.c +++ b/orte/tools/orterun/orterun.c @@ -11,6 +11,7 @@ * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. * Copyright (c) 2006-2007 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -525,7 +526,7 @@ static void dump_aborted_procs(orte_jobid_t jobid) bool exit_status_set; char *keys[] = { ORTE_PROC_NAME_KEY, - ORTE_PROC_PID_KEY, + ORTE_PROC_LOCAL_PID_KEY, ORTE_PROC_RANK_KEY, ORTE_PROC_EXIT_CODE_KEY, ORTE_NODE_NAME_KEY, @@ -575,7 +576,7 @@ static void dump_aborted_procs(orte_jobid_t jobid) name = *nptr; continue; } - if(strcmp(keyval->key, ORTE_PROC_PID_KEY) == 0) { + if(strcmp(keyval->key, ORTE_PROC_LOCAL_PID_KEY) == 0) { if (ORTE_SUCCESS != (rc = orte_dss.get((void**)&pidptr, keyval->value, ORTE_PID))) { ORTE_ERROR_LOG(rc); continue;