diff options
author | Martin Schwenke <martin@meltin.net> | 2013-06-30 17:42:11 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-07-05 15:52:33 +1000 |
commit | dbd1759eae8f701ef3fede0ff5f5e3f61e995c38 (patch) | |
tree | 961756ea9e0396d7aabaca846c91e4e01279415b /ctdb/include/ctdb_private.h | |
parent | 4e07c6c433d158686e83dfcc64eb80a9e3ec0a1d (diff) | |
download | samba-dbd1759eae8f701ef3fede0ff5f5e3f61e995c38.tar.gz samba-dbd1759eae8f701ef3fede0ff5f5e3f61e995c38.tar.xz samba-dbd1759eae8f701ef3fede0ff5f5e3f61e995c38.zip |
util: New function ctdb_die()
This is like ctdb_fatal() but exits cleanly without dumping core or
generating a backtrace.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c0a9456692c88a7a5542cd893d8f326524d3f94e)
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r-- | ctdb/include/ctdb_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 05109acb6d2..1939f07cceb 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -725,6 +725,7 @@ struct ctdb_fetch_handle { /* internal prototypes */ void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3); void ctdb_fatal(struct ctdb_context *ctdb, const char *msg); +void ctdb_die(struct ctdb_context *ctdb, const char *msg); void ctdb_external_trace(void); bool ctdb_same_address(struct ctdb_address *a1, struct ctdb_address *a2); int ctdb_parse_address(struct ctdb_context *ctdb, |