From 9e58739da2226c24808c0cbf9e7d43efe1635364 Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 28 Aug 2012 09:57:27 +0000 Subject: [PATCH] deactivate rlimits for jobs launched with BatchManager_Local (fix bug PAL #2354) --- src/Local/Batch_BatchManager_Local.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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}; -- 2.39.2