summaryrefslogtreecommitdiff
path: root/ctdb/tcp
diff options
context:
space:
mode:
authorroot <root@h01c001mz.VSOFS1.COM>2008-05-08 17:14:00 +1000
committerroot <root@h01c001mz.VSOFS1.COM>2008-05-08 17:14:00 +1000
commitfb5cc542069ac3166fbcb5e978a6c049f34ef07a (patch)
tree0c157d25059c0027d1a70c336c1f15abb70e777f /ctdb/tcp
parent69bdb333317d8954468adcf4a242dbf6129138fa (diff)
downloadsamba-fb5cc542069ac3166fbcb5e978a6c049f34ef07a.tar.gz
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)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r--ctdb/tcp/tcp_init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ctdb/tcp/tcp_init.c b/ctdb/tcp/tcp_init.c
index 527373cb08b..5c53caf6cd9 100644
--- a/ctdb/tcp/tcp_init.c
+++ b/ctdb/tcp/tcp_init.c
@@ -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;