[mpich2-commits] r7944 - mpich2/trunk/src/pm/hydra/utils/sock

balaji at mcs.anl.gov balaji at mcs.anl.gov
Fri Feb 11 17:34:34 CST 2011


Author: balaji
Date: 2011-02-11 17:34:33 -0600 (Fri, 11 Feb 2011)
New Revision: 7944

Modified:
   mpich2/trunk/src/pm/hydra/utils/sock/sock.c
Log:
We should check to see if the host name is "localhost" as well.

No reviewer.

Modified: mpich2/trunk/src/pm/hydra/utils/sock/sock.c
===================================================================
--- mpich2/trunk/src/pm/hydra/utils/sock/sock.c	2011-02-11 23:34:30 UTC (rev 7943)
+++ mpich2/trunk/src/pm/hydra/utils/sock/sock.c	2011-02-11 23:34:33 UTC (rev 7944)
@@ -550,7 +550,7 @@
     status = sock_localhost_init();
     HYDU_ERR_POP(status, "unable to initialize sock local information\n");
 
-    if (!strcmp(host, localhost)) {
+    if (!strcmp(host, localhost) || !strcmp(host, "localhost")) {
         *is_local = 1;
         goto fn_exit;
     }
@@ -567,7 +567,7 @@
             }
         }
 
-        if (!strcmp(shorthost, shortlocal)) {
+        if (!strcmp(shorthost, shortlocal) || !strcmp(shorthost, "localhost")) {
             *is_local = 1;
             goto fn_exit;
         }



More information about the mpich2-commits mailing list