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

Function socket_disable_sigpipe

src/daemon/ipc.c:623–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623static bool socket_disable_sigpipe(int fd) {
624#ifdef SO_NOSIGPIPE
625 int enabled = 1;
626 return setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &enabled, sizeof(enabled)) == 0;
627#else
628 (void)fd;
629 return true;
630#endif
631}
632
633static int local_socket_new(void) {
634 int fd = socket(AF_UNIX, SOCK_STREAM, 0);

Callers 2

local_socket_newFunction · 0.85
cbm_daemon_ipc_acceptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected