1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-daemon: Move ctdb_fork.c to server

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>
This commit is contained in:
Amitay Isaacs 2015-11-11 14:26:53 +11:00 committed by Martin Schwenke
parent 848da80152
commit 7dd2f1c35a
6 changed files with 15 additions and 17 deletions

View File

@ -20,18 +20,6 @@
#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);

View File

@ -647,6 +647,18 @@ void ctdb_shutdown_sequence(struct ctdb_context *ctdb, int exit_code);
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,

View File

@ -176,7 +176,6 @@ ctdb_get_capabilities(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"

View File

@ -46,7 +46,6 @@ bool fast_start;
#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"
@ -76,6 +75,7 @@ bool fast_start;
#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"

View File

@ -332,8 +332,7 @@ def build(bld):
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')
@ -396,7 +395,7 @@ def build(bld):
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')