git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a64a83f
)
ctdb-tools: Always exit with positive return value
author
Amitay Isaacs
<amitay@gmail.com>
Tue, 7 Mar 2017 05:44:08 +0000
(16:44 +1100)
committer
Martin Schwenke
<martins@samba.org>
Tue, 30 May 2017 06:05:56 +0000
(08:05 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue May 30 08:05:56 CEST 2017 on sn-devel-144
ctdb/tools/ctdb_event.c
patch
|
blob
|
history
diff --git
a/ctdb/tools/ctdb_event.c
b/ctdb/tools/ctdb_event.c
index 8e2dca70e678e8fa8ea43eaf812280bd76d1c9c3..9b348a6846dd8137c20fd08c8457b0406ae4a65b 100644
(file)
--- a/
ctdb/tools/ctdb_event.c
+++ b/
ctdb/tools/ctdb_event.c
@@
-251,7
+251,8
@@
static int command_status(TALLOC_CTX *mem_ctx, struct tool_context *tctx,
talloc_free(script_list);
}
- return event_status;
+ ret = (event_status < 0) ? -event_status : event_status;
+ return ret;
}
static int command_script_list(TALLOC_CTX *mem_ctx, struct tool_context *tctx,