MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / close_open_fds

Function close_open_fds

daemonize.c:570–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570void close_open_fds(void)
571{
572 int fd, open_max = get_open_fds_limit();
573 for (fd = 3; fd < open_max; fd++)
574 syscall(SYS_close, fd); /* does not set errno */
575}
576
577void close_open_fds_except(int except)
578{

Callers 2

exec_syncFunction · 0.85
__popen3Function · 0.85

Calls 1

get_open_fds_limitFunction · 0.85

Tested by

no test coverage detected