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 | 8 |
1 files changed, 4 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 56f45381de..1934b783dc 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,4 +1,4 @@ | |||
1 | From a6f3359042219abaa8ae06dfcce41a4721e8c21f Mon Sep 17 00:00:00 2001 | 1 | From bb28a9c870bb47dcdb1ccebaa8e3a5a86730a244 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] Do not disable buffering when writing to oom_score_adj | 4 | Subject: [PATCH] Do not disable buffering when writing to oom_score_adj |
@@ -25,10 +25,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com> | |||
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 | 27 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c |
28 | index 24fec5ecb53a..642b02443c85 100644 | 28 | index 644f53aee005..acaf13591396 100644 |
29 | --- a/src/basic/process-util.c | 29 | --- a/src/basic/process-util.c |
30 | +++ b/src/basic/process-util.c | 30 | +++ b/src/basic/process-util.c |
31 | @@ -1492,7 +1492,7 @@ int set_oom_score_adjust(int value) { | 31 | @@ -1500,7 +1500,7 @@ int set_oom_score_adjust(int value) { |
32 | sprintf(t, "%i", value); | 32 | sprintf(t, "%i", value); |
33 | 33 | ||
34 | return write_string_file("/proc/self/oom_score_adj", t, | 34 | return write_string_file("/proc/self/oom_score_adj", t, |
@@ -36,4 +36,4 @@ index 24fec5ecb53a..642b02443c85 100644 | |||
36 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); | 36 | + WRITE_STRING_FILE_VERIFY_ON_FAILURE); |
37 | } | 37 | } |
38 | 38 | ||
39 | static const char *const ioprio_class_table[] = { | 39 | int pidfd_get_pid(int fd, pid_t *ret) { |