Searched refs:keep_fd (Results 1 - 2 of 2) sorted by relevance

/freebsd-13-stable/contrib/ntp/libntp/
H A Dntp_worker.c79 * Close all file descriptors except the given keep_fd.
83 int keep_fd
88 for (fd = 0; fd < keep_fd; fd++)
91 close_all_beyond(keep_fd);
98 * Close all file descriptors after the given keep_fd, which is the
103 int keep_fd
107 closefrom(keep_fd + 1);
114 if (fcntl(keep_fd + 1, F_CLOSEM, 0) == -1)
115 msyslog(LOG_ERR, "F_CLOSEM(%d): %m", keep_fd + 1);
121 for (fd = keep_fd
[all...]
H A Dwork_fork.c450 int keep_fd; local
576 keep_fd = max(c->req_read_pipe, c->resp_write_pipe);
577 for (fd = 3; fd < keep_fd; fd++)
581 close_all_beyond(keep_fd);

Completed in 113 milliseconds