summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-04-16 11:11:11 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-04-18 13:18:29 +1000
commit4ede763f3b673cad17536f495cc8d80f4f014b97 (patch)
treedbda6d513fc30394665103c4d4996d9eebe0545d /ctdb/include
parentf07d47a56d68e42bc89ea0ff2879fc7aab3ffdec (diff)
util: New functions ctdb_set_child_info() and ctdb_is_child_process()
Must be called by all child processes. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 59b019a97aad9a731f9080ea5be14d0dbdfe03d6)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index d0c4234dce..80a24253d6 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -1080,6 +1080,8 @@ void ctdb_restore_scheduler(struct ctdb_context *ctdb);
struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
pid_t ctdb_fork(struct ctdb_context *ctdb);
pid_t ctdb_fork_no_free_ringbuffer(struct ctdb_context *ctdb);
+void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt, ...);
+bool ctdb_is_child_process(void);
int ctdb_kill(struct ctdb_context *ctdb, pid_t pid, int signum);
int32_t ctdb_control_takeover_ip(struct ctdb_context *ctdb,