]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgset: use exit code 129 on invalid usage
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 30 Sep 2022 14:37:43 +0000 (08:37 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 14:37:46 +0000 (08:37 -0600)
commit6d5d11385668344613d252b79a23eb30ab3dc736
treea2aeef6590540873de4fa910b281c15c86872424
parentf8a1bbef47fc8b4661dc24800201ceffa54aa4e7
tools/cgset: use exit code 129 on invalid usage

The exit code 1 refers to general error and using -1 wraps to
255, both codes do not signify bad arguments. Let's use exit code 129
(EXIT_BADARGS) for hinting to the users about invalid usage.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit d7abb100847f94cdb1328a26f3b92627b2cbf38e)
src/tools/cgset.c