From: Chuck Lever Date: Mon, 30 Sep 2024 00:50:11 +0000 (-0400) Subject: xdrgen: Exit status should be zero on success X-Git-Tag: v6.13-rc1~76^2~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d86fca3affca04b6c2cedd7060206c3e7091ecc8;p=thirdparty%2Flinux.git xdrgen: Exit status should be zero on success To use xdrgen in Makefiles, it needs to exit with a zero status if the compilation worked. Otherwise the make command fails with an error. Signed-off-by: Chuck Lever --- diff --git a/tools/net/sunrpc/xdrgen/xdrgen b/tools/net/sunrpc/xdrgen/xdrgen index 95f303b2861b1..43762be39252d 100755 --- a/tools/net/sunrpc/xdrgen/xdrgen +++ b/tools/net/sunrpc/xdrgen/xdrgen @@ -128,5 +128,7 @@ There is NO WARRANTY, to the extent permitted by law.""", try: if __name__ == "__main__": sys.exit(main()) -except (SystemExit, KeyboardInterrupt, BrokenPipeError): +except SystemExit: + sys.exit(0) +except (KeyboardInterrupt, BrokenPipeError): sys.exit(1)