1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

core: Fix EACCES check for OOM adjustments

Commit 3bd5c3 added a check for EACCES, but missed the minus sign.
This commit is contained in:
Martin Pitt 2015-01-13 07:06:31 +01:00
parent 038cf33420
commit 6cb7fa17b3

View File

@ -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();