forked from enlightenment/efl
* ecore: SO_REUSEADDR in all case.
Patch thanks to Raoul Hecky < raoul.hecky at gmail.com > SVN revision: 56253
This commit is contained in:
parent
cea2587c3b
commit
d2d54ecad6
|
@ -1439,12 +1439,12 @@ _ecore_con_cb_udp_listen(void *data,
|
|||
(const void *)&mreq6, sizeof(mreq6)) != 0)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (setsockopt(svr->fd, SOL_SOCKET, SO_REUSEADDR, (const void *)&on,
|
||||
sizeof(on)) != 0)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (setsockopt(svr->fd, SOL_SOCKET, SO_REUSEADDR, (const void *)&on,
|
||||
sizeof(on)) != 0)
|
||||
goto error;
|
||||
|
||||
if (fcntl(svr->fd, F_SETFL, O_NONBLOCK) < 0)
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue