From: ribes Date: Thu, 12 Nov 2009 14:55:42 +0000 (+0000) Subject: Remove Debug infos X-Git-Tag: new_launcher_alpha_091119~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe1971ffb068e730f76cfaf03babde2d13007b90;p=tools%2Flibbatch.git Remove Debug infos --- diff --git a/src/Local/Batch_BatchManager_Local.cxx b/src/Local/Batch_BatchManager_Local.cxx index 446ef1a..aadbcdc 100644 --- a/src/Local/Batch_BatchManager_Local.cxx +++ b/src/Local/Batch_BatchManager_Local.cxx @@ -811,7 +811,6 @@ namespace Batch { // On positionne les limites systeme imposees au fils if (param.find(MAXCPUTIME) != param.end()) { - UNDER_LOCK( cout << "AAAAAAAAAAAAAAAAAAaa" << endl ); int maxcputime = param[MAXCPUTIME]; struct rlimit limit; limit.rlim_cur = maxcputime; @@ -820,7 +819,6 @@ namespace Batch { } if (param.find(MAXDISKSIZE) != param.end()) { - UNDER_LOCK( cout << "BBBBBBBBBBBBBBBBBBBbb" << endl ); int maxdisksize = param[MAXDISKSIZE]; struct rlimit limit; limit.rlim_cur = maxdisksize * 1024; @@ -829,7 +827,6 @@ namespace Batch { } if (param.find(MAXRAMSIZE) != param.end()) { - UNDER_LOCK( cout << "CCCCCCCCCCCCCCCCCcc" << endl ); int maxramsize = param[MAXRAMSIZE]; struct rlimit limit; limit.rlim_cur = maxramsize * 1024; @@ -856,15 +853,8 @@ namespace Batch { // On execute la commande du fils - //int result = execve(argv[0], argv, envp); - std::cerr << "EXECVE !!!!!!" << std::endl; - execve(argv[0], argv, NULL); + int result = execve(argv[0], argv, envp); UNDER_LOCK( cout << "*** debug_command = " << strerror(errno) << endl ); - //int result = execv(argv[0], argv); - // - //char *const parmList[] = {"/usr/bin/ssh", "localhost", "-l", "aribes", "sleep 10 && echo end", NULL}; - //int result = execv("/usr/bin/ssh", parmList); - // No need to deallocate since nothing happens after a successful exec // Normalement on ne devrait jamais arriver ici