From: Ronnie Sahlberg Date: Fri, 19 Oct 2007 01:03:12 +0000 (+1000) Subject: dont close the file, just set the fd to -1 X-Git-Tag: tevent-0.9.20~348^2~2368^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=600264ac02065bf7ad1205373bef6258b44f5df3;p=thirdparty%2Fsamba.git dont close the file, just set the fd to -1 (This used to be ctdb commit 04b26aa09e69b3c9fa1db245b5123c3cc02db8af) --- diff --git a/ctdb/tcp/tcp_init.c b/ctdb/tcp/tcp_init.c index 98a4c493f2e..1b186c3f400 100644 --- a/ctdb/tcp/tcp_init.c +++ b/ctdb/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(),