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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.