Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove remaining parts of the single-process mode
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 1 Sep 2015 11:11:10 +0000 (13:11 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 1 Sep 2015 11:14:28 +0000 (13:14 +0200)
src/mc/simgrid_mc.cpp

index 397d58a..c39526b 100644 (file)
@@ -129,25 +129,6 @@ int main(int argc, char** argv)
   if (argc < 2)
     xbt_die("Missing arguments.\n");
 
-  bool server_mode = true;
-  char* env = std::getenv("SIMGRID_MC_MODE");
-  if (env) {
-    if (std::strcmp(env, "server") == 0)
-      server_mode = true;
-    else if (std::strcmp(env, "standalone") == 0)
-      server_mode = false;
-    else
-      xbt_die("Unrecognised value for SIMGRID_MC_MODE (server/standalone)");
-  }
-
-  if (!server_mode) {
-    setenv(MC_ENV_VARIABLE, "1", 1);
-    execvp(argv[1], argv+1);
-
-    std::perror("simgrid-mc");
-    return 127;
-  }
-
   // Create a AF_LOCAL socketpair:
   int res;