ionice of util-linux-ng returns exit code 0 when complaining about it's usage

Solution Unverified - Updated -

Issue

  • Calling ionice that is part of the util-linux-ng package with bad arguments, terminates with exit code of 0, generally understood to indicate "no problem" but without really running the command specified.

  • This is e.g. bad when used in a pre-backup script as it will not have the backup abort/report an issue in that case.

# ionice -c idle some-command; echo $?
ionice: cannot parse number 'idle'
0
  • Expected to return something != 0.

Environment

  • Red Hat Enterprise Linux 6.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content