daemon: fill ctdb->ctdbd_pid early
authorMichael Adam <obnox@samba.org>
Tue, 28 Dec 2010 12:14:23 +0000 (13:14 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Mar 2011 23:56:34 +0000 (00:56 +0100)
server/ctdb_daemon.c

index 9c650a084f1207cd6bfda7fd99273a9285b75bb6..75344ad386c73bd2ea8b52fa9d859e2e14eb42c9 100644 (file)
@@ -777,6 +777,7 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork, bool use_syslog,
        block_signal(SIGPIPE);
 
        ctdbd_pid = getpid();
+       ctdb->ctdbd_pid = ctdbd_pid;
 
 
        DEBUG(DEBUG_ERR, ("Starting CTDBD as pid : %u\n", ctdbd_pid));