mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
util: ctdb_fork() should call ctdb_set_child_info()
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> (This used to be ctdb commit ba8866d40125bab06391a17d48ff06a4a9f9da89)
This commit is contained in:
parent
4ede763f3b
commit
7aa0a49cbd
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user