1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

execute: don't fail if we cannot fix OOM in a container

This commit is contained in:
Lennart Poettering 2011-04-12 20:12:15 +02:00
parent c59c76cab0
commit 90a5f6e42a
2 changed files with 4 additions and 1 deletions

2
TODO
View File

@ -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

View File

@ -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;
}