diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-core/systemd/systemd/0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch index 24e24e8e5a..56f45381de 100644 --- a/meta/recipes-core/systemd/systemd/0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch +++ b/meta/recipes-core/systemd/systemd/0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From c7a4efb8bccb52e1714c151929c23e12bde59b82 Mon Sep 17 00:00:00 2001 | 1 | From a6f3359042219abaa8ae06dfcce41a4721e8c21f Mon Sep 17 00:00:00 2001 |
2 | From: Chen Qi <Qi.Chen@windriver.com> | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
3 | Date: Wed, 4 Jul 2018 15:00:44 +0800 | 3 | Date: Wed, 4 Jul 2018 15:00:44 +0800 |
4 | Subject: [PATCH 17/24] Do not disable buffering when writing to oom_score_adj | 4 | Subject: [PATCH] Do not disable buffering when writing to oom_score_adj |
5 | 5 | ||
6 | On musl, disabling buffering when writing to oom_score_adj will | 6 | On musl, disabling buffering when writing to oom_score_adj will |
7 | cause the following error. | 7 | cause the following error. |
@@ -19,15 +19,16 @@ Upstream-Status: Inappropriate [musl specific] | |||
19 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | 19 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
20 | [rebased for systemd 243] | 20 | [rebased for systemd 243] |
21 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | 21 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> |
22 | |||
22 | --- | 23 | --- |
23 | src/basic/process-util.c | 2 +- | 24 | src/basic/process-util.c | 2 +- |
24 | 1 file changed, 1 insertion(+), 1 deletion(-) | 25 | 1 file changed, 1 insertion(+), 1 deletion(-) |
25 | 26 | ||
26 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c | 27 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c |
27 | index b1c08fcade..0a7a1f7d89 100644 | 28 | index 24fec5ecb53a..642b02443c85 100644 |
28 | --- a/src/basic/process-util.c | 29 | --- a/src/basic/process-util.c |
29 | +++ b/src/basic/process-util.c | 30 | +++ b/src/basic/process-util.c |
30 | @@ -1474,7 +1474,7 @@ int set_oom_score_adjust(int value) { | 31 | @@ -1492,7 +1492,7 @@ int set_oom_score_adjust(int value) { |
31 | sprintf(t, "%i", value); | 32 | sprintf(t, "%i", value); |
32 | 33 | ||
33 | return write_string_file("/proc/self/oom_score_adj", t, | 34 | return write_string_file("/proc/self/oom_score_adj", t, |