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

Function socket_disable_sigpipe

src/daemon/ipc.c:630–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630static bool socket_disable_sigpipe(int fd) {
631#ifdef SO_NOSIGPIPE
632 int enabled = 1;
633 return setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &enabled, sizeof(enabled)) == 0;
634#else
635 (void)fd;
636 return true;
637#endif
638}
639
640static int local_socket_new(void) {
641 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