]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: with more than one argument, interpret first argument as priority
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 3 Jul 2025 14:47:49 +0000 (16:47 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Jul 2025 11:33:11 +0000 (13:33 +0200)
commite3da3b885e3176fc56c74b3935124df8cf2ecad5
tree4a0abb9fcfbbaaf2112499db0d8ee6c5b7880ad8
parent6c87a3ac5ee96194e0e461db24b1bbfe369bdb59
chrt: with more than one argument, interpret first argument as priority

The first argument is a priority not only for `chrt --pid <prio> <pid>`
but also for `chrt <prio> <command> [<argument>...]`.

This fixes an oversight in recent commit e7a2d62434.

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