diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-13 07:06:31 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-13 07:06:31 +0100 |
commit | 6cb7fa17b3d89741a5fd3ac807775a3022c7d891 (patch) | |
tree | 94380cb3df2d4c1a90453526507cf66394b07aa4 /src/core/execute.c | |
parent | Remove some fixed items from TODO (diff) | |
download | systemd-6cb7fa17b3d89741a5fd3ac807775a3022c7d891.tar.xz systemd-6cb7fa17b3d89741a5fd3ac807775a3022c7d891.zip |
core: Fix EACCES check for OOM adjustments
Commit 3bd5c3 added a check for EACCES, but missed the minus sign.
Diffstat (limited to '')
-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 12a96a7639..19d3ec0da9 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1417,7 +1417,7 @@ static int exec_child( sprintf(t, "%i", context->oom_score_adjust); r = write_string_file("/proc/self/oom_score_adj", t); - if (r == -EPERM || r == EACCES) { + if (r == -EPERM || r == -EACCES) { log_open(); log_unit_debug_errno(params->unit_id, r, "Failed to adjust OOM setting, assuming containerized execution, ignoring: %m"); log_close(); |