util: ctdb_fork() should call ctdb_set_child_info()
authorMartin Schwenke <martin@meltin.net>
Mon, 15 Apr 2013 06:14:40 +0000 (16:14 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 18 Apr 2013 03:18:29 +0000 (13:18 +1000)
For now we pass NULL as the child name.  Later we'll give ctdb_fork()
and friends an extra argument and pass that through.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
common/ctdb_fork.c

index 7bad969dd2c54c9cbe0c4597ea0bae5688175eb4..d372ae0443279d4555d6ce7012180cf102b9d813 100644 (file)
@@ -59,6 +59,8 @@ pid_t ctdb_fork_no_free_ringbuffer(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.