]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-common: Set close-on-exec for startup fd
authorAmitay Isaacs <amitay@gmail.com>
Wed, 10 Oct 2018 07:16:33 +0000 (18:16 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 22 Oct 2018 04:04:20 +0000 (06:04 +0200)
commit80549927bc1741a4b8af8b8e830de4d37fa0c4a8
tree8b7b5dab10501079f803d848bac85a757b8da04a
parentc9e1603a5d0c1a216439d4a2b0e7cdc05181e898
ctdb-common: Set close-on-exec for startup fd

The startup_fd should not be propagated to the child processes created
from a daemon.  It should only be used in the daemon code to return the
status of the startup.  Another use of startup_fd is to notify the
parent if the daemon process has exited.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13659

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/sock_daemon.c
ctdb/common/sock_daemon.h