MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fd_set_cloexec

Function fd_set_cloexec

src/daemon/ipc.c:613–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613static bool fd_set_cloexec(int fd) {
614 int flags = fcntl(fd, F_GETFD);
615 return flags >= 0 && fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0;
616}
617
618static bool fd_set_nonblocking(int fd) {
619 int flags = fcntl(fd, F_GETFL);

Calls

no outgoing calls

Tested by

no test coverage detected