diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-12 03:38:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-12 12:58:19 +0200 |
commit | 68faf98ca09314b61314ad2ac0cc133c400a83f9 (patch) | |
tree | 209d19aeced8bfdf54a425f1fe205f42fa455bd8 /src/core | |
parent | d18f337c3f2fe14240598c18415f72d0cf15393f (diff) |
execute: when we can't get the requested rlimit, get the next closest
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 8ae3923c5d..271c57f562 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1367,7 +1367,7 @@ int exec_spawn(ExecCommand *command, if (!context->rlimit[i]) continue; - if (setrlimit(i, context->rlimit[i]) < 0) { + if (setrlimit_closest(i, context->rlimit[i]) < 0) { err = -errno; r = EXIT_LIMITS; goto fail_child; |