]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgset: use exit code 129 on invalid usage
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 29 Sep 2022 10:19:58 +0000 (15:49 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 14:34:55 +0000 (08:34 -0600)
commitd7abb100847f94cdb1328a26f3b92627b2cbf38e
treeb3ea3f577071aafbd314bd0d8b3906aff867eb4c
parent8c2b005b4544fea075b92d609d792d76913836db
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>
src/tools/cgset.c