X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fexecute.c;h=1e376ff89e08beacdf46aa344e3a2128f9bde6ac;hp=d67916c249282699eb9215abcb230defc73833c4;hb=90a5f6e42a7422b6033be5d0fe2bf48ea6b91b98;hpb=c59c76cab0f4e654e1f6705f5be02f925970e5ca diff --git a/src/execute.c b/src/execute.c index d67916c24..1e376ff89 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1106,7 +1106,8 @@ int exec_spawn(ExecCommand *command, snprintf(t, sizeof(t), "%i", adj); char_array_0(t); - if (write_one_line_file("/proc/self/oom_adj", t) < 0) { + if (write_one_line_file("/proc/self/oom_adj", t) < 0 + && errno != EACCES) { r = EXIT_OOM_ADJUST; goto fail_child; }