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

Function fd_set_cloexec

src/daemon/ipc.c:792–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792static bool fd_set_cloexec(int fd) {
793 int flags = fcntl(fd, F_GETFD);
794 return flags >= 0 && fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0;
795}
796
797static bool fd_set_nonblocking(int fd) {
798 int flags = fcntl(fd, F_GETFL);

Calls

no outgoing calls

Tested by

no test coverage detected