diff options
author | Yureka Lilian <yuka@yuka.dev> | 2023-03-21 08:46:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-23 22:36:46 +0000 |
commit | ab7a9262a5616b299579c686428da028f72250a2 (patch) | |
tree | 2444cd01d5b53e36abb12f191e8980ed81f791ed /meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch | |
parent | 13c1529b70345b0446482e8952e0b4b452bce7b1 (diff) | |
download | poky-ab7a9262a5616b299579c686428da028f72250a2.tar.gz |
systemd: rebase musl patches
(From OE-Core rev: f34f6ab04b443608497b73668365819343d0c2fe)
Signed-off-by: Yureka Lilian <yuka@yuka.dev>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch deleted file mode 100644 index da56d8b4b6..0000000000 --- a/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From e480d28305907c3874f4e58b722b8aa43c3ac7a2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Wed, 4 Jul 2018 15:00:44 +0800 | ||
4 | Subject: [PATCH] Do not disable buffering when writing to oom_score_adj | ||
5 | |||
6 | On musl, disabling buffering when writing to oom_score_adj will | ||
7 | cause the following error. | ||
8 | |||
9 | Failed to adjust OOM setting: Invalid argument | ||
10 | |||
11 | This error appears for systemd-udevd.service and dbus.service. | ||
12 | This is because kernel receives '-' instead of the whole '-900' | ||
13 | if buffering is disabled. | ||
14 | |||
15 | This is libc implementation specific, as glibc does not have this issue. | ||
16 | |||
17 | Upstream-Status: Inappropriate [musl specific] | ||
18 | |||
19 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
20 | [rebased for systemd 243] | ||
21 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | ||
22 | |||
23 | --- | ||
24 | src/basic/process-util.c | 2 +- | ||
25 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
26 | |||
27 | --- a/src/basic/process-util.c | ||
28 | +++ b/src/basic/process-util.c | ||
29 | @@ -1466,7 +1466,7 @@ int set_oom_score_adjust(int value) { | ||
30 | xsprintf(t, "%i", value); | ||
31 | |||
32 | return write_string_file("/proc/self/oom_score_adj", t, | ||
33 | - WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRING_FILE_DISABLE_BUFFER); | ||
34 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); | ||
35 | } | ||
36 | |||
37 | int get_oom_score_adjust(int *ret) { | ||