summaryrefslogtreecommitdiff
blob: 44409d33e7672f301656dab9499f5e7e876cbab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: src/exec-ulimit.c
===================================================================
--- src/exec-ulimit.c	(revision 2369)
+++ src/exec-ulimit.c	(revision 2370)
@@ -177,6 +177,10 @@
       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);
   }