|
Lines 4278-4283
x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
Link Here
|
| 4278 |
if (x11_use_localhost) |
4278 |
if (x11_use_localhost) |
| 4279 |
channel_set_reuseaddr(sock); |
4279 |
channel_set_reuseaddr(sock); |
| 4280 |
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { |
4280 |
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { |
|
|
4281 |
/* |
| 4282 |
* If bind() fails with EADDRNOTAVAIL, we |
| 4283 |
* should not break immediately but rather |
| 4284 |
* try the next address available. |
| 4285 |
*/ |
| 4286 |
if (errno == EADDRNOTAVAIL) { |
| 4287 |
close(sock); |
| 4288 |
continue; |
| 4289 |
} |
| 4290 |
|
| 4281 |
debug2("bind port %d: %.100s", port, strerror(errno)); |
4291 |
debug2("bind port %d: %.100s", port, strerror(errno)); |
| 4282 |
close(sock); |
4292 |
close(sock); |
| 4283 |
|
4293 |
|
| 4284 |
- |
|
|