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
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;