[mpich2-commits] r4069 - mpich2/trunk/src/pm/hydra/launcher/mpiexec

balaji at mcs.anl.gov balaji at mcs.anl.gov
Sat Mar 14 16:03:58 CDT 2009


Author: balaji
Date: 2009-03-14 16:03:58 -0500 (Sat, 14 Mar 2009)
New Revision: 4069

Modified:
   mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c
Log:
Additional help when bad arguments are passed to mpiexec.

Modified: mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c
===================================================================
--- mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c	2009-03-14 21:01:41 UTC (rev 4068)
+++ mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c	2009-03-14 21:03:58 UTC (rev 4069)
@@ -348,6 +348,12 @@
             continue;
         }
 
+        if (*argv[0] == '-') {
+            HYDU_Error_printf("unrecognized argument\n");
+            status = HYD_INTERNAL_ERROR;
+            goto fn_fail;
+        }
+
         /* This is to catch everything that fell through */
         local_params_started = 1;
 



More information about the mpich2-commits mailing list