X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fexec-ulimit.c;fp=src%2Fexec-ulimit.c;h=7219a9e04762fc35c29e0795b84288db96c9e078;hb=29fd9845a8128b8e7f6c3828da14d724f8e748f7;hp=a4879639c44e90633caa20e9619e574104a285d0;hpb=de1587ade0cb90cefe81838fa3e5480a4b90e08e;p=util-vserver.git diff --git a/src/exec-ulimit.c b/src/exec-ulimit.c index a487963..7219a9e 100644 --- a/src/exec-ulimit.c +++ b/src/exec-ulimit.c @@ -177,6 +177,10 @@ int main(int argc, char *argv[]) Egetrlimit(LIMITS[i].code, &limit); if (readSingleLimit(&limit, LIMITS[i].fname)) Esetrlimit(LIMITS[i].code, &limit); + else { + limit.rlim_cur = limit.rlim_max = RLIM_INFINITY; + Esetrlimit(LIMITS[i].code, &limit); + } } Efchdir(cur_fd); }