mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Re-arrange.
This commit is contained in:
parent
17827a5edf
commit
9b6dd7f087
@ -386,7 +386,9 @@ bind_to_af_unix(void)
|
||||
|
||||
setsock_reuse_addr(s_info_listen.fd);
|
||||
|
||||
if (bind(s_info_listen.fd, s_info_listen.addr, s_info_listen.size) < 0) {
|
||||
if (bind(s_info_listen.fd, s_info_listen.addr, s_info_listen.size) >= 0)
|
||||
break;
|
||||
|
||||
if (errno != EADDRINUSE)
|
||||
report_af_unix_error("bind()", errno);
|
||||
|
||||
@ -397,9 +399,6 @@ bind_to_af_unix(void)
|
||||
} else {
|
||||
goto free_and_error;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Listen and accept. */
|
||||
|
Loading…
Reference in New Issue
Block a user