chiark / gitweb /
missing: if RLIMIT_RTTIME is not defined by the libc, then we need a new define for...
[elogind.git] / src / core / execute.c
index fec4b3b..ca807dc 100644 (file)
@@ -1676,7 +1676,7 @@ int exec_spawn(ExecCommand *command,
 
                 if (apply_permissions) {
 
-                        for (i = 0; i < RLIMIT_NLIMITS; i++) {
+                        for (i = 0; i < _RLIMIT_MAX; i++) {
                                 if (!context->rlimit[i])
                                         continue;