MCPcopy 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
934static 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
944struct socketlist {
945 int *list;

Callers 1

setup_named_sockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected