]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgsnapshot: use exit code 129 on invalid usage
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 30 Sep 2022 14:38:46 +0000 (08:38 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 14:38:49 +0000 (08:38 -0600)
commit977312bc83d221982229331363aaf42b27a8c663
tree313db8b534379af2262cd34f4c6653f8b0ba55fe
parent45627de77a3a54523595695a27d1cb97e01430ff
tools/cgsnapshot: 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 8af5441bcbfee6e624455f124ef2273251f7c111)
src/tools/cgsnapshot.c