From 4ede763f3b673cad17536f495cc8d80f4f014b97 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 16 Apr 2013 11:11:11 +1000 Subject: util: New functions ctdb_set_child_info() and ctdb_is_child_process() Must be called by all child processes. Signed-off-by: Martin Schwenke Reviewed-by: Michael Adam (This used to be ctdb commit 59b019a97aad9a731f9080ea5be14d0dbdfe03d6) --- ctdb/include/ctdb_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ctdb/include') 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, -- cgit