Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ set_reuse_addr
Function
set_reuse_addr
daemon.c:934–942 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
932
}
933
934
static int set_reuse_addr(int sockfd)
935
{
936
int on = 1;
937
938
if (!reuseaddr)
939
return 0;
940
return setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR,
941
&on, sizeof(on));
942
}
943
944
struct socketlist {
945
int *list;
Callers
1
setup_named_sock
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected