From 575e29b2ee9ceafeb64672e51ce3fa896155224a Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 30 May 2007 16:59:30 +0000
Subject: [PATCH] svn merge -r11589:11591
 https://eris.llnl.gov/svn/slurm/branches/slurm-1.1

---
 src/plugins/mpi/mvapich/mvapich.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/mpi/mvapich/mvapich.c b/src/plugins/mpi/mvapich/mvapich.c
index 3d0e4325605..8bc495a45cb 100644
--- a/src/plugins/mpi/mvapich/mvapich.c
+++ b/src/plugins/mpi/mvapich/mvapich.c
@@ -791,7 +791,7 @@ static void mvapich_wait_for_abort(mvapich_state_t *st)
 		 *   read an error message. If this fails, msglen will
 		 *   stay zero and no message will be printed.
 		 */
-		if (ranks[1] >= 0) {
+		if (n == sizeof (ranks)) {
 			dst = ranks[0];
 			src = ranks[1];
 			fd_read_n (newfd, &msglen, sizeof (int));
-- 
GitLab