1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Delete the socket file on the penultimate try in bind_to_af_unix,

restoring the behaviour that was inadvertently lost in CVS revision 1.48.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-10-30 04:23:04 +00:00 committed by Miciah Dashiel Butler Masters
parent a7e0fa38cc
commit 4806005c21

View File

@ -393,6 +393,10 @@ bind_to_af_unix(void)
report_af_unix_error("bind()", errno);
++attempts;
if (attempts == MAX_BIND_TRIES)
unlink_unix(s_info_listen.addr);
if (attempts > MAX_BIND_TRIES)
goto free_and_error;