]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xdrgen: Exit status should be zero on success
authorChuck Lever <chuck.lever@oracle.com>
Mon, 30 Sep 2024 00:50:11 +0000 (20:50 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Nov 2024 18:41:58 +0000 (13:41 -0500)
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 <chuck.lever@oracle.com>
tools/net/sunrpc/xdrgen/xdrgen

index 95f303b2861b1b0e73c985d377655b9b4cf9027e..43762be39252d3b1f1c5a9d4fae53acf410a07c8 100755 (executable)
@@ -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)