]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgget: use exit code 129 on invalid usage
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 30 Sep 2022 14:37:28 +0000 (08:37 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 14:37:31 +0000 (08:37 -0600)
commitf8a1bbef47fc8b4661dc24800201ceffa54aa4e7
treee86102947400181ed714b98d1b2a18e63f1beae8
parentcaa34dd03bcc6c8b1896687e033ab614417da936
tools/cgget: 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 8c2b005b4544fea075b92d609d792d76913836db)
src/tools/cgget.c