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.
This commit is contained in:
Carsten Haitzler 2020-02-15 11:31:43 +00:00
parent bddb538563
commit 0802f4dc95
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,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);