projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
612196e
)
xdrgen: Exit status should be zero on success
author
Chuck Lever
<chuck.lever@oracle.com>
Mon, 30 Sep 2024 00:50:11 +0000
(20:50 -0400)
committer
Chuck 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
patch
|
blob
|
blame
|
history
diff --git
a/tools/net/sunrpc/xdrgen/xdrgen
b/tools/net/sunrpc/xdrgen/xdrgen
index 95f303b2861b1b0e73c985d377655b9b4cf9027e..43762be39252d3b1f1c5a9d4fae53acf410a07c8 100755
(executable)
--- 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)