diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-01-24 11:11:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-26 06:27:00 +0000 |
commit | e7ffa406dcaefd168b1641fee2f19ca3df850d53 (patch) | |
tree | 605ac6337bb21ef2d286627879eda3b082ceff00 /meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch | |
parent | 603dffc49a2c0084ce73340fdf1d7c624d1a954e (diff) | |
download | poky-e7ffa406dcaefd168b1641fee2f19ca3df850d53.tar.gz |
systemd: Forward port musl patches
Redo the header include patch and add fixes for new code.
(From OE-Core rev: 7e35a575ef09a85e625a81e0b4d80b020e3e3a92)
Signed-off-by: Khem Raj <raj.khem@gmail.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 | 8 |
1 files changed, 3 insertions, 5 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 index 7933b9e76e..baf4903803 100644 --- 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 | |||
@@ -24,16 +24,14 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com> | |||
24 | src/basic/process-util.c | 2 +- | 24 | src/basic/process-util.c | 2 +- |
25 | 1 file changed, 1 insertion(+), 1 deletion(-) | 25 | 1 file changed, 1 insertion(+), 1 deletion(-) |
26 | 26 | ||
27 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c | ||
28 | index 2d06f9f60a..f86bd0b7dc 100644 | ||
29 | --- a/src/basic/process-util.c | 27 | --- a/src/basic/process-util.c |
30 | +++ b/src/basic/process-util.c | 28 | +++ b/src/basic/process-util.c |
31 | @@ -1606,7 +1606,7 @@ int set_oom_score_adjust(int value) { | 29 | @@ -1489,7 +1489,7 @@ int set_oom_score_adjust(int value) { |
32 | sprintf(t, "%i", value); | 30 | xsprintf(t, "%i", value); |
33 | 31 | ||
34 | return write_string_file("/proc/self/oom_score_adj", t, | 32 | return write_string_file("/proc/self/oom_score_adj", t, |
35 | - WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRING_FILE_DISABLE_BUFFER); | 33 | - WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRING_FILE_DISABLE_BUFFER); |
36 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); | 34 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); |
37 | } | 35 | } |
38 | 36 | ||
39 | int pidfd_get_pid(int fd, pid_t *ret) { | 37 | int get_oom_score_adjust(int *ret) { |