mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
ctdb-daemon: Remove setting of debug_extra via ctdb_set_child_info()
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
9ae62f1532
commit
ca55652575
@ -604,9 +604,6 @@ int switch_from_server_to_client(struct ctdb_context *ctdb,
|
||||
|
||||
/* From server/ctdb_fork.c */
|
||||
|
||||
void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt,
|
||||
...) PRINTF_ATTRIBUTE(2,3);
|
||||
|
||||
void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);
|
||||
|
||||
pid_t ctdb_fork(struct ctdb_context *ctdb);
|
||||
|
@ -35,20 +35,6 @@
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt, ...)
|
||||
{
|
||||
if (child_name_fmt != NULL) {
|
||||
va_list ap;
|
||||
char *t;
|
||||
|
||||
va_start(ap, child_name_fmt);
|
||||
t = talloc_vasprintf(mem_ctx, child_name_fmt, ap);
|
||||
debug_extra = talloc_asprintf(mem_ctx, "%s:", t);
|
||||
talloc_free(t);
|
||||
va_end(ap);
|
||||
}
|
||||
}
|
||||
|
||||
void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid)
|
||||
{
|
||||
char *process;
|
||||
@ -81,8 +67,6 @@ pid_t ctdb_fork(struct ctdb_context *ctdb)
|
||||
return -1;
|
||||
}
|
||||
if (pid == 0) {
|
||||
ctdb_set_child_info(ctdb, NULL);
|
||||
|
||||
/* Close the Unix Domain socket and the TCP socket.
|
||||
* This ensures that none of the child processes will
|
||||
* look like the main daemon when it is not running.
|
||||
|
Loading…
x
Reference in New Issue
Block a user