diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-12-15 20:53:53 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-12-15 20:53:53 (GMT) |
commit | 02c29713e636d105e63fe2286fdd673a57573eea (patch) | |
tree | ce91af604a0b92e61f00bb68edc9ae7c10bf7516 /abs/core/util-linux/0001-chrt-default-to-SCHED_RR-policy.patch | |
parent | fca162ce703a757f1b23106065851b574428315f (diff) | |
download | linhes_pkgbuild-02c29713e636d105e63fe2286fdd673a57573eea.zip linhes_pkgbuild-02c29713e636d105e63fe2286fdd673a57573eea.tar.gz linhes_pkgbuild-02c29713e636d105e63fe2286fdd673a57573eea.tar.bz2 |
util-linux: update to 2.29
Diffstat (limited to 'abs/core/util-linux/0001-chrt-default-to-SCHED_RR-policy.patch')
-rw-r--r-- | abs/core/util-linux/0001-chrt-default-to-SCHED_RR-policy.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/abs/core/util-linux/0001-chrt-default-to-SCHED_RR-policy.patch b/abs/core/util-linux/0001-chrt-default-to-SCHED_RR-policy.patch new file mode 100644 index 0000000..c442149 --- /dev/null +++ b/abs/core/util-linux/0001-chrt-default-to-SCHED_RR-policy.patch @@ -0,0 +1,39 @@ +From c7adc2f204f19167f781fa2ee739e0ca386fc4f5 Mon Sep 17 00:00:00 2001 +From: Andreas Henriksson <andreas@fatal.se> +Date: Fri, 2 Dec 2016 15:10:18 +0100 +Subject: [PATCH] chrt: default to SCHED_RR policy + +This fixes a regression introduced in: + +commit 7a4ea5664edba98bff28adec3a9c3cfb5763a495 +"chrt: add control struct" + +Previously (and as documented in the manpage) the default policy +was SCHED_RR. Now it's implicitly SCHED_OTHER (0) as the value +is not initialized explicitly anymore. + +Test-command: chrt 90 echo hello + +Reported-by: Patrick Pelissier <patrick.pelissier@gmail.com> +Addresses: http://bugs.debian.org/846572 +Signed-off-by: Andreas Henriksson <andreas@fatal.se> +--- + schedutils/chrt.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/schedutils/chrt.c b/schedutils/chrt.c +index a861d9f..73d1ffa 100644 +--- a/schedutils/chrt.c ++++ b/schedutils/chrt.c +@@ -409,7 +409,7 @@ static void set_sched(struct chrt_ctl *ctl) + + int main(int argc, char **argv) + { +- struct chrt_ctl _ctl = { .pid = -1 }, *ctl = &_ctl; ++ struct chrt_ctl _ctl = { .pid = -1, .policy = SCHED_RR }, *ctl = &_ctl; + int c; + + static const struct option longopts[] = { +-- +2.10.2 + |