forked from enlightenment/efl
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:
parent
bddb538563
commit
0802f4dc95
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue