]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: validate priority before trying to use it
authorSami Kerola <kerolasa@iki.fi>
Sun, 3 Apr 2016 08:35:29 +0000 (09:35 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Apr 2016 10:29:16 +0000 (12:29 +0200)
commit2e31d1c3a5d729c4a9062e37210a1c01623327d6
tree1f0d80d4a491bd902bf936890d56276f4c3d47b9
parent962a7dc3b0372d718e1686a2d5734cbde4713cab
chrt: validate priority before trying to use it

Earlier message:

$ chrt -i 1 ls
chrt: failed to set pid 0's policy: Invalid argument

basically told 'something failed', while the new one tries to be more
helpful.

$ chrt -i 1 ls
chrt: unsupported priority value for the policy: 1: see --max for valid range

Addresses: https://bugs.debian.org/791707
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
schedutils/chrt.c