From: barate Date: Tue, 28 Aug 2012 09:57:27 +0000 (+0000) Subject: deactivate rlimits for jobs launched with BatchManager_Local (fix bug PAL #2354) X-Git-Tag: V1_6_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e58739da2226c24808c0cbf9e7d43efe1635364;p=tools%2Flibbatch.git deactivate rlimits for jobs launched with BatchManager_Local (fix bug PAL #2354) --- diff --git a/src/Local/Batch_BatchManager_Local.cxx b/src/Local/Batch_BatchManager_Local.cxx index bca266f..2098e1c 100644 --- a/src/Local/Batch_BatchManager_Local.cxx +++ b/src/Local/Batch_BatchManager_Local.cxx @@ -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};