summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-09-30 03:50:11 +0300
committerChuck Lever <chuck.lever@oracle.com>2024-11-11 21:41:58 +0300
commitd86fca3affca04b6c2cedd7060206c3e7091ecc8 (patch)
treeb4fb0df86cb266b06f1c0ee271c9162d3d847f6e /tools
parent612196ef5c50bdafe34314e36b085d4843fb2e9d (diff)
downloadlinux-d86fca3affca04b6c2cedd7060206c3e7091ecc8.tar.xz
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 <chuck.lever@oracle.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/net/sunrpc/xdrgen/xdrgen4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/net/sunrpc/xdrgen/xdrgen b/tools/net/sunrpc/xdrgen/xdrgen
index 95f303b2861b..43762be39252 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)