SO_NOSIGPIPE was not declared SO_NOSIGPIPE was not declared c c

SO_NOSIGPIPE was not declared


There is no SO_NOSIGPIPE in Linux (nor some other systems). You can instead use the MSG_NOSIGNAL flag when calling send(), or use signal(SIGPIPE, SIG_IGN) to make your entire application ignore SIGPIPE.