From b8d16b6e9b1009485d4773b88083e8846f274071 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 15 Feb 2020 11:31:43 +0000 Subject: [PATCH] ecore_con - on bsd if we get flock unlink old socket by force trying to address other parts of the bsd socket hanging on bind() etc. ... unlink socket if we get the file lock as we should now have an exclusive lock on the socket anyway - clear out the old one by force once we have the lock. --- src/lib/ecore_con/efl_net_server_unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore_con/efl_net_server_unix.c b/src/lib/ecore_con/efl_net_server_unix.c index a94c880e1d..776f6a2f20 100644 --- a/src/lib/ecore_con/efl_net_server_unix.c +++ b/src/lib/ecore_con/efl_net_server_unix.c @@ -206,6 +206,7 @@ _efl_net_server_unix_bind(Eo *o, Efl_Net_Server_Unix_Data *pd) err = EADDRINUSE; goto error; } + unlink(addr.sun_path); pd->have_lock_fd = EINA_TRUE; #endif r = bind(fd, (struct sockaddr *)&addr, addrlen); -- 2.34.1