projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a47e670
)
core: check both EPERM and EACCES for OOM adjustments
author
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Jan 2015 22:21:01 +0000
(23:21 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Jan 2015 22:21:01 +0000
(23:21 +0100)
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index
63d295c
..
67a69b7
100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-1415,7
+1415,7
@@
static int exec_child(ExecCommand *command,
sprintf(t, "%i", context->oom_score_adjust);
err = write_string_file("/proc/self/oom_score_adj", t);
- if (err < 0 && err != -EPERM) {
+ if (err < 0 && err != -EPERM
&& err != EACCES
) {
*error = EXIT_OOM_ADJUST;
return -errno;
}