git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7a184
)
dont close the file, just set the fd to -1
author
Ronnie Sahlberg
<sahlberg@ronnie>
Fri, 19 Oct 2007 01:03:12 +0000
(11:03 +1000)
committer
Ronnie Sahlberg
<sahlberg@ronnie>
Fri, 19 Oct 2007 01:03:12 +0000
(11:03 +1000)
tcp/tcp_init.c
patch
|
blob
|
history
diff --git
a/tcp/tcp_init.c
b/tcp/tcp_init.c
index 98a4c493f2e3a8d51783fe545599e9557393e8fd..1b186c3f400ac2536e2aa370a4e885383be2ef17 100644
(file)
--- a/
tcp/tcp_init.c
+++ b/
tcp/tcp_init.c
@@
-99,11
+99,7
@@
static void ctdb_tcp_restart(struct ctdb_node *node)
DEBUG(0,("Tearing down connection to dead node :%d\n", node->pnn));
- if (tnode->fd == -1) {
- close(tnode->fd);
- tnode->fd = -1;
- }
-
+ tnode->fd = -1;
ctdb_queue_set_fd(tnode->out_queue, -1);
event_add_timed(node->ctdb->ev, tnode, timeval_zero(),