]> git.ipfire.org Git - thirdparty/util-linux.git/commit
renice: disallow --priority <arg> without pid argument
authorSami Kerola <kerolasa@iki.fi>
Fri, 5 Sep 2014 22:17:19 +0000 (23:17 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 19 Sep 2014 18:31:12 +0000 (19:31 +0100)
commit0bb01bb0b7fc05d7eeb8a0117bc8fbecf54a88ce
tree62451bd1c7ee0b768e792c548c0f9d0364be8b49
parent6dcc066f3b2cad8b2bc6ed8d97da15555692ef8c
renice: disallow --priority <arg> without pid argument

Earlier a lonely priority with an argument but without pid resulted to no
action and success, when the invocation should have failed.

$ renice --priority 42 ; echo $?
0

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/renice.c