]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: do not try to interpret the --pid option itself as a PID
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 3 Jul 2025 14:47:50 +0000 (16:47 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Jul 2025 11:33:11 +0000 (13:33 +0200)
commit624d2d37a201ec74d4c597a4c5886600aa2566be
treee4c21460670724698f64055350dfb42ef5771901
parente3da3b885e3176fc56c74b3935124df8cf2ecad5
chrt: do not try to interpret the --pid option itself as a PID

When not specifying a PID with --pid, `chrt` would report:

  chrt: invalid PID argument: '--pid'

That was silly.  After this change, `chrt --pid` will report:

  chrt: too few arguments

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
schedutils/chrt.c