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 | 12 |
1 files changed, 5 insertions, 7 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 b54635e8a9..24e24e8e5a 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 | |||
@@ -17,15 +17,17 @@ This is libc implementation specific, as glibc does not have this issue. | |||
17 | Upstream-Status: Inappropriate [musl specific] | 17 | Upstream-Status: Inappropriate [musl specific] |
18 | 18 | ||
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] | ||
21 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | ||
20 | --- | 22 | --- |
21 | src/basic/process-util.c | 2 +- | 23 | src/basic/process-util.c | 2 +- |
22 | 1 file changed, 1 insertion(+), 1 deletion(-) | 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
23 | 25 | ||
24 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c | 26 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c |
25 | index f773eea..79af915 100644 | 27 | index b1c08fcade..0a7a1f7d89 100644 |
26 | --- a/src/basic/process-util.c | 28 | --- a/src/basic/process-util.c |
27 | +++ b/src/basic/process-util.c | 29 | +++ b/src/basic/process-util.c |
28 | @@ -1546,7 +1546,7 @@ int set_oom_score_adjust(int value) { | 30 | @@ -1474,7 +1474,7 @@ int set_oom_score_adjust(int value) { |
29 | sprintf(t, "%i", value); | 31 | sprintf(t, "%i", value); |
30 | 32 | ||
31 | return write_string_file("/proc/self/oom_score_adj", t, | 33 | return write_string_file("/proc/self/oom_score_adj", t, |
@@ -33,8 +35,4 @@ index f773eea..79af915 100644 | |||
33 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); | 35 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); |
34 | } | 36 | } |
35 | 37 | ||
36 | int cpus_in_affinity_mask(void) { | 38 | static const char *const ioprio_class_table[] = { |
37 | -- | ||
38 | 2.11.0 | ||
39 | |||
40 | |||