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

Function socket_disable_sigpipe

src/daemon/ipc.c:802–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802static bool socket_disable_sigpipe(int fd) {
803#ifdef SO_NOSIGPIPE
804 int enabled = 1;
805 return setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &enabled, sizeof(enabled)) == 0;
806#else
807 (void)fd;
808 return true;
809#endif
810}
811
812static int local_socket_new(void) {
813 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