summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-08 23:21:01 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-08 23:21:01 +0100
commit3bd5c32d939af0165a3aceff607101ba25efc2a0 (patch)
tree50653a39a8d2e6e69c7e4a2447ed351cc9aaf26a /src/core
parenta47e6701bfc45519a4e038daa52e9236e932f59a (diff)
core: check both EPERM and EACCES for OOM adjustments
Diffstat (limited to 'src/core')
-rw-r--r--src/core/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index 63d295cf41..67a69b7bd2 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -1415,7 +1415,7 @@ static int exec_child(ExecCommand *command,
sprintf(t, "%i", context->oom_score_adjust);
err = write_string_file("/proc/self/oom_score_adj", t);
- if (err < 0 && err != -EPERM) {
+ if (err < 0 && err != -EPERM && err != EACCES) {
*error = EXIT_OOM_ADJUST;
return -errno;
}