mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Re-arrange.
This commit is contained in:
parent
9b6dd7f087
commit
00b12197a5
@ -392,13 +392,11 @@ bind_to_af_unix(void)
|
|||||||
if (errno != EADDRINUSE)
|
if (errno != EADDRINUSE)
|
||||||
report_af_unix_error("bind()", errno);
|
report_af_unix_error("bind()", errno);
|
||||||
|
|
||||||
if (++attempts <= MAX_BIND_TRIES) {
|
if (++attempts > MAX_BIND_TRIES)
|
||||||
|
goto free_and_error;
|
||||||
|
|
||||||
elinks_usleep(BIND_TRIES_DELAY * attempts);
|
elinks_usleep(BIND_TRIES_DELAY * attempts);
|
||||||
close(s_info_listen.fd);
|
close(s_info_listen.fd);
|
||||||
|
|
||||||
} else {
|
|
||||||
goto free_and_error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Listen and accept. */
|
/* Listen and accept. */
|
||||||
|
Loading…
Reference in New Issue
Block a user