X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fexecute.c;h=271c57f562186974fcde25e0c76b5afb99a8c5b8;hp=8ae3923c5d233bf6750d6e6e2ce02ce4f4fca2de;hb=90ccc3fca7e53a60a9e67b9d5812e1d4a27fc07d;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/src/core/execute.c b/src/core/execute.c index 8ae3923c5..271c57f56 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;