[mpich-commits] r10690 - mpich2/trunk/src/pm/hydra/ui/mpich

balaji at mcs.anl.gov balaji at mcs.anl.gov
Thu Nov 29 10:20:05 CST 2012


Author: balaji
Date: 2012-11-29 10:20:05 -0600 (Thu, 29 Nov 2012)
New Revision: 10690

Modified:
   mpich2/trunk/src/pm/hydra/ui/mpich/utils.c
Log:
Provide an environment variable to disable hostname propagation.
Fixes tt#1749.

No reviewer.

Modified: mpich2/trunk/src/pm/hydra/ui/mpich/utils.c
===================================================================
--- mpich2/trunk/src/pm/hydra/ui/mpich/utils.c	2012-11-29 16:20:03 UTC (rev 10689)
+++ mpich2/trunk/src/pm/hydra/ui/mpich/utils.c	2012-11-29 16:20:05 UTC (rev 10690)
@@ -1540,6 +1540,11 @@
     if (HYD_uii_mpx_exec_list == NULL && HYD_server_info.user_global.ckpoint_prefix == NULL)
         HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR, "no executable provided\n");
 
+    /* If hostname propagation is not set on the command-line, check
+     * for the environment variable */
+    if (hostname_propagation == -1)
+        MPL_env2bool("HYDRA_HOSTNAME_PROPAGATION", &hostname_propagation);
+
     /* If an interface is provided, set that */
     if (HYD_server_info.user_global.iface) {
         if (hostname_propagation == 1) {



More information about the commits mailing list