Salome HOME
deactivate rlimits for jobs launched with BatchManager_Local (fix bug PAL #2354)
authorbarate <barate>
Tue, 28 Aug 2012 09:57:27 +0000 (09:57 +0000)
committerbarate <barate>
Tue, 28 Aug 2012 09:57:27 +0000 (09:57 +0000)
src/Local/Batch_BatchManager_Local.cxx

index bca266f72050030860e565ab8686f52bae4d3c16..2098e1c91d8abe6520b81151cbcfcbf18ff7440b 100644 (file)
@@ -763,6 +763,9 @@ namespace Batch {
 
 
       // On positionne les limites systeme imposees au fils
+      // This part is deactivated because those limits should be set on the job process, not on
+      // the ssh process. If it is done properly one day, beware of the types used (int is not enough)
+      /*
       if (param.find(MAXCPUTIME) != param.end()) {
         int maxcputime = param[MAXCPUTIME];
         struct rlimit limit;
@@ -786,6 +789,7 @@ namespace Batch {
         limit.rlim_max = int(maxramsize * 1.1) * 1024 * 1024;
         setrlimit(RLIMIT_AS, &limit);
       }
+      */
 
 
       //char *const parmList[] = {"/usr/bin/ssh", "localhost", "-l", "aribes", "sleep 1 && echo end", NULL};