]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: simplify the other check for too few arguments
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 3 Jul 2025 14:47:51 +0000 (16:47 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Jul 2025 11:33:11 +0000 (13:33 +0200)
commit7f47aa34942e4f2ba06cf142f2f9aa39ba2ba4c3
tree93dcde1dd9b6dcf965671af8706acd9082c97999
parent624d2d37a201ec74d4c597a4c5886600aa2566be
chrt: simplify the other check for too few arguments

Without option --pid, always at least two arguments are needed:
the <priority> value and a <command>.  (The 'need_prio' variable
is relevant only for the --pid case.)

Also, make the error message more informative.

CC: Madadi Vineeth Reddy <vineethr@linux.ibm.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
schedutils/chrt.c