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:
parent
eaa508b826
commit
49fb663d6e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user