diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-12 20:12:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-12 20:12:15 +0200 |
commit | 90a5f6e42a7422b6033be5d0fe2bf48ea6b91b98 (patch) | |
tree | 53114a2f2489ecc8070dffb8eee17b71462fbb5a | |
parent | analyze: fix typo (diff) | |
download | systemd-90a5f6e42a7422b6033be5d0fe2bf48ea6b91b98.tar.xz systemd-90a5f6e42a7422b6033be5d0fe2bf48ea6b91b98.zip |
execute: don't fail if we cannot fix OOM in a container
Diffstat (limited to '')
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/execute.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -23,6 +23,8 @@ F15: * get writev() /dev/kmsg support into the F15 kernel +* fix sd_is_socket() invocation in dbus + Features: * fix alsa mixer restore to not print error when no config is stored diff --git a/src/execute.c b/src/execute.c index d67916c249..1e376ff89e 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; } |