diff options
author | Amitay Isaacs <amitay@gmail.com> | 2016-11-25 14:37:17 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2016-12-05 08:09:22 +0100 |
commit | ca5565257531cc5e41aea84666bdd5b354c5138f (patch) | |
tree | 39e5431195e0a0a0c0fd1d209951787d8d0119b6 /ctdb | |
parent | 9ae62f15322fecd05cd9d925c5f359334155aed0 (diff) | |
download | samba-ca5565257531cc5e41aea84666bdd5b354c5138f.tar.gz |
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>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/include/ctdb_private.h | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_fork.c | 16 |
2 files changed, 0 insertions, 19 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 0a68dae427b..3dc090ccaa7 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -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); diff --git a/ctdb/server/ctdb_fork.c b/ctdb/server/ctdb_fork.c index 54ffd02ae0c..97dff0088ba 100644 --- a/ctdb/server/ctdb_fork.c +++ b/ctdb/server/ctdb_fork.c @@ -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. |