These functions are only used in the ctdb daemon code.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
#ifndef __CTDB_COMMON_H__
#define __CTDB_COMMON_H__
-/* From common/ctdb_fork.c */
-
-void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt, ...);
-
-void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);
-
-pid_t ctdb_fork(struct ctdb_context *ctdb);
-
-struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
-
-int ctdb_kill(struct ctdb_context *ctdb, pid_t pid, int signum);
-
/* From common/ctdb_io.c */
int ctdb_queue_length(struct ctdb_queue *queue);
int switch_from_server_to_client(struct ctdb_context *ctdb,
const char *fmt, ...);
+/* From server/ctdb_fork.c */
+
+void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt, ...);
+
+void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);
+
+pid_t ctdb_fork(struct ctdb_context *ctdb);
+
+struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
+
+int ctdb_kill(struct ctdb_context *ctdb, pid_t pid, int signum);
+
/* from server/ctdb_freeze.c */
int32_t ctdb_control_db_freeze(struct ctdb_context *ctdb,
#include "common/srvid.c"
#include "common/rb_tree.c"
#include "common/ctdb_logging.c"
-#include "common/ctdb_fork.c"
#include "common/system_util.c"
#include "common/reqid.c"
#include "common/cmdline.c"
#include "common/rb_tree.c"
#include "common/ctdb_logging.c"
-#include "common/ctdb_fork.c"
#include "common/system_util.c"
#include "common/reqid.c"
#include "server/ctdb_statistics.c"
#include "server/ctdb_update_record.c"
#include "server/ctdb_lock.c"
+#include "server/ctdb_fork.c"
/* CTDB_CLIENT_OBJ */
#include "client/ctdb_client.c"
bld.SAMBA_SUBSYSTEM('ctdb-common',
source=bld.SUBDIR('common',
'''ctdb_io.c ctdb_util.c ctdb_ltdb.c
- cmdline.c rb_tree.c
- ctdb_fork.c'''),
+ cmdline.c rb_tree.c'''),
includes='include',
deps='replace popt talloc tevent tdb popt ctdb-system')
ctdb_vacuum.c ctdb_banning.c
ctdb_statistics.c
ctdb_update_record.c
- ctdb_lock.c'''),
+ ctdb_lock.c ctdb_fork.c'''),
includes='include',
deps='replace popt talloc tevent tdb talloc_report')