MCPcopy Index your code
hub / github.com/git/git / serve

Function serve

daemon.c:1241–1256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239#endif
1240
1241static int serve(struct string_list *listen_addr, int listen_port,
1242 struct credentials *cred)
1243{
1244 struct socketlist socklist = { NULL, 0, 0 };
1245
1246 socksetup(listen_addr, listen_port, &socklist);
1247 if (socklist.nr == 0)
1248 die("unable to allocate any listen sockets on port %u",
1249 listen_port);
1250
1251 drop_privileges(cred);
1252
1253 loginfo("Ready to rumble");
1254
1255 return service_loop(&socklist);
1256}
1257
1258int cmd_main(int argc, const char **argv)
1259{

Callers 1

cmd_mainFunction · 0.85

Calls 5

socksetupFunction · 0.85
drop_privilegesFunction · 0.85
loginfoFunction · 0.85
service_loopFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected