1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

ctdb-daemon: Remove stale eventd socket

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12513

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue Jan 17 15:00:15 CET 2017 on sn-devel-144
This commit is contained in:
Amitay Isaacs 2017-01-13 16:00:45 +11:00 committed by Martin Schwenke
parent eaa508b826
commit 49fb663d6e

View File

@ -171,6 +171,15 @@ int ctdb_start_eventd(struct ctdb_context *ctdb)
ectx = ctdb->ectx;
ret = unlink(ectx->socket);
if (ret == 0) {
D_WARNING("Removed stale eventd socket %s\n", ectx->socket);
} else if (errno != ENOENT) {
D_ERR("Failed to remove stale eventd socket %s\n",
ectx->socket);
return -1;
}
argv = talloc_array(ectx, const char *, 14);
if (argv == NULL) {
return -1;