1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

listen_fd is auto-closed

Closing it here just causes an epoll error, and may close a fd in use by
another structure to be closed. This caused a infinite recovery loop

(This used to be ctdb commit bc251ac7029c2689776a8c31b28ac1d233d52d4f)
This commit is contained in:
root 2008-05-08 17:14:00 +10:00
parent 69bdb33331
commit fb5cc54206

View File

@ -147,9 +147,6 @@ static const struct ctdb_methods ctdb_tcp_methods = {
static int tcp_ctcp_destructor(struct ctdb_tcp *ctcp)
{
if (ctcp->listen_fd) {
close(ctcp->listen_fd);
}
ctcp->ctdb->private_data = NULL;
ctcp->ctdb->methods = NULL;