]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgcreate: use exit code 129 on invalid usage
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 29 Sep 2022 10:20:27 +0000 (15:50 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 14:34:55 +0000 (08:34 -0600)
commitc6f59dce4f5ef39a70e7775ab8a6ea89dc5ce469
tree24a2a5426ce54a40c7bbd54ef3fd4c5e22f98937
parentf9c9d39c12c21fd6168a212b36625e9b24384b68
tools/cgcreate: 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/cgcreate.c