ctdb: Use prctl_set_comment from lib/util
[metze/samba/wip.git] / ctdb / server / ctdb_recoverd.c
index 3f0cffc36d32783ec3969ed6ab09ff0f4362fa62..c9f19fa8870ed1df6644b5bd0b6f79bea045ff5b 100644 (file)
@@ -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);