diff options
-rw-r--r-- | ctdb/server/ctdb_call.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_monitor.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_recover.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_recoverd.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_takeover.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_traverse.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_update_record.c | 3 | ||||
-rw-r--r-- | ctdb/server/ctdb_vacuum.c | 3 |
8 files changed, 16 insertions, 8 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c index 6d05af85649..db9fb6aefc5 100644 --- a/ctdb/server/ctdb_call.c +++ b/ctdb/server/ctdb_call.c @@ -30,6 +30,7 @@ #include "lib/util/dlinklist.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -1887,7 +1888,7 @@ int ctdb_start_revoke_ro_record(struct ctdb_context *ctdb, struct ctdb_db_contex close(rc->fd[0]); debug_extra = talloc_asprintf(NULL, "revokechild-%s:", ctdb_db->db_name); - ctdb_set_process_name("ctdb_revokechild"); + prctl_set_comment("ctdb_revokechild"); if (switch_from_server_to_client(ctdb, "revokechild-%s", ctdb_db->db_name) != 0) { DEBUG(DEBUG_ERR,("Failed to switch from server to client for revokechild process\n")); c = 1; diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c index 4f998d3d1f5..d8eda2a11ca 100644 --- a/ctdb/server/ctdb_monitor.c +++ b/ctdb/server/ctdb_monitor.c @@ -28,6 +28,7 @@ #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" @@ -104,7 +105,7 @@ void ctdb_run_notification_script(struct ctdb_context *ctdb, const char *event) if (child == 0) { int ret; - ctdb_set_process_name("ctdb_notification"); + prctl_set_comment("ctdb_notification"); debug_extra = talloc_asprintf(NULL, "notification-%s:", event); ret = ctdb_run_notification_script_child(ctdb, event); if (ret != 0) { diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c index bf045c1461d..7b34d7e2913 100644 --- a/ctdb/server/ctdb_recover.c +++ b/ctdb/server/ctdb_recover.c @@ -31,6 +31,7 @@ #include "lib/util/dlinklist.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -633,7 +634,7 @@ int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb, char cc = 0; close(state->fd[0]); - ctdb_set_process_name("ctdb_recmode"); + prctl_set_comment("ctdb_recmode"); debug_extra = talloc_asprintf(NULL, "set_recmode:"); /* Daemon should not be able to get the recover lock, * as it should be held by the recovery master */ diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index 3f0cffc36d3..c9f19fa8870 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -32,6 +32,7 @@ #include "lib/util/dlinklist.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -4074,7 +4075,7 @@ int ctdb_start_recoverd(struct ctdb_context *ctdb) srandom(getpid() ^ time(NULL)); - ctdb_set_process_name("ctdb_recovered"); + prctl_set_comment("ctdb_recovered"); if (switch_from_server_to_client(ctdb, "recoverd") != 0) { DEBUG(DEBUG_CRIT, (__location__ "ERROR: failed to switch recovery daemon into client mode. shutting down.\n")); exit(1); diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index 6844246c2ad..c9179d30173 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -30,6 +30,7 @@ #include "lib/util/dlinklist.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -4518,7 +4519,7 @@ int32_t ctdb_control_reload_public_ips(struct ctdb_context *ctdb, struct ctdb_re close(h->fd[0]); debug_extra = talloc_asprintf(NULL, "reloadips:"); - ctdb_set_process_name("ctdb_reloadips"); + prctl_set_comment("ctdb_reloadips"); if (switch_from_server_to_client(ctdb, "reloadips-child") != 0) { DEBUG(DEBUG_CRIT,("ERROR: Failed to switch reloadips child into client mode\n")); res = -1; diff --git a/ctdb/server/ctdb_traverse.c b/ctdb/server/ctdb_traverse.c index 3dea3fad7c6..73c3a066db9 100644 --- a/ctdb/server/ctdb_traverse.c +++ b/ctdb/server/ctdb_traverse.c @@ -30,6 +30,7 @@ #include "lib/util/dlinklist.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -217,7 +218,7 @@ static struct ctdb_traverse_local_handle *ctdb_traverse_local(struct ctdb_db_con close(h->fd[0]); - ctdb_set_process_name("ctdb_traverse"); + prctl_set_comment("ctdb_traverse"); if (switch_from_server_to_client(ctdb, "traverse_local-%s:", ctdb_db->db_name) != 0) { DEBUG(DEBUG_CRIT, ("Failed to switch traverse child into client mode\n")); diff --git a/ctdb/server/ctdb_update_record.c b/ctdb/server/ctdb_update_record.c index 143520ab7b1..bc9c6fe06c3 100644 --- a/ctdb/server/ctdb_update_record.c +++ b/ctdb/server/ctdb_update_record.c @@ -28,6 +28,7 @@ #include "lib/tdb_wrap/tdb_wrap.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -265,7 +266,7 @@ static struct childwrite_handle *ctdb_childwrite( char c = 0; close(result->fd[0]); - ctdb_set_process_name("ctdb_write_persistent"); + prctl_set_comment("ctdb_write_persistent"); debug_extra = talloc_asprintf(NULL, "childwrite-%s:", ctdb_db->db_name); ret = ctdb_persistent_store(state); if (ret != 0) { diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index a81bd54b287..54dfe9955ab 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -31,6 +31,7 @@ #include "lib/util/dlinklist.h" #include "lib/util/debug.h" #include "lib/util/samba_util.h" +#include "lib/util/util_process.h" #include "ctdb_private.h" #include "ctdb_client.h" @@ -1507,7 +1508,7 @@ static void ctdb_vacuum_event(struct tevent_context *ev, close(child_ctx->fd[0]); DEBUG(DEBUG_INFO,("Vacuuming child process %d for db %s started\n", getpid(), ctdb_db->db_name)); - ctdb_set_process_name("ctdb_vacuum"); + prctl_set_comment("ctdb_vacuum"); if (switch_from_server_to_client(ctdb, "vacuum-%s", ctdb_db->db_name) != 0) { DEBUG(DEBUG_CRIT, (__location__ "ERROR: failed to switch vacuum daemon into client mode. Shutting down.\n")); _exit(1); |