]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: default to SCHED_RR policy
authorAndreas Henriksson <andreas@fatal.se>
Fri, 2 Dec 2016 14:10:18 +0000 (15:10 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2017 14:43:41 +0000 (15:43 +0100)
commit943717dbd1692e487f02b33d4bff88d463ec87ef
tree12c2bdec5f0876517d402992e5593f02a05d10f4
parentd44ab08e1f41e93094e671b6e0db2ace07c9fcfd
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