summaryrefslogtreecommitdiff
path: root/ctdb/server
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-05-29 18:16:13 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-05-29 18:16:13 +1000
commit42591560506c7fee977975e261e4790ae1a0f97f (patch)
tree2bbc7d6919267dd1bfaeb832c853daa3707ffe56 /ctdb/server
parent6feb7a1bf8f5f4a8a679f97d528e4148516e9a21 (diff)
downloadsamba-42591560506c7fee977975e261e4790ae1a0f97f.tar.gz
dont remove the socket when the dameon stops. This can race if the
service is immediately restarted (This used to be ctdb commit b18356764cd49d934eab901e596bb75c6e3ecdf8)
Diffstat (limited to 'ctdb/server')
-rw-r--r--ctdb/server/ctdb_daemon.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c
index 957f5d8d113..861c90c851b 100644
--- a/ctdb/server/ctdb_daemon.c
+++ b/ctdb/server/ctdb_daemon.c
@@ -617,15 +617,6 @@ failed:
return -1;
}
-/*
- delete the socket on exit - called on destruction of autofree context
- */
-static int unlink_destructor(const char *name)
-{
- unlink(name);
- return 0;
-}
-
static void sig_child_handler(struct event_context *ev,
struct signal_event *se, int signum, int count,
void *dont_care,
@@ -694,7 +685,6 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork)
DEBUG(DEBUG_ALERT,(__location__ " talloc_strdup failed.\n"));
exit(12);
}
- talloc_set_destructor(domain_socket_name, unlink_destructor);
ctdb->ev = event_context_init(NULL);