use socket_set_reuseaddr
This commit is contained in:
@@ -713,12 +713,7 @@ heim_sipc_service_unix(const char *service,
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
#if defined(HAVE_SETSOCKOPT) && defined(SOL_SOCKET) && defined(SO_REUSEADDR)
|
socket_set_reuseaddr(fd, 1);
|
||||||
{
|
|
||||||
int one = 1;
|
|
||||||
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void *)&one, sizeof(one));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifdef LOCAL_CREDS
|
#ifdef LOCAL_CREDS
|
||||||
{
|
{
|
||||||
int one = 1;
|
int one = 1;
|
||||||
|
Reference in New Issue
Block a user