Package: util-linux
Version: 2.25.2-6
Severity: normal

% chrt -i 1 sh
chrt: failed to set pid 0's policy: Invalid argument

Since chrt's arguments are confusing enough already (such as the
necessary placement of "-p", if used, first and the correspoding pid
last), a misleading error message is really the last thing it needs.

"pid 0" makes it appear that "-p" was in fact active (for whatever
reason) and a pid of 0 (again for whatever reason, maybe default)
was the problem, since of course pid 0 is really invalid;
distracting from the fact that the "1" argument to "-i" is in fact
invalid.

Ideally, the message should say what's actually invalid ("priority
out of range" or such). But anyway, including another invalid (and
inapplicable) thing in the message is a bad idea.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to