SIGPIPE ignored before any service starts, and in standalone services

3proxy ignored SIGPIPE only after readconfig(), which starts the
services: a client gone while written to in the meantime killed the
process (as auto's case saw on macOS). Standalone services never ignored
it. Sends pass no MSG_NOSIGNAL, so this is the only guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vladimir DubrovinandClaude Opus 5.5 committed 2026-10-23 16:56:09 +03:00
1 parent d987d112a6
commit 6a35a902c5
2 files changed
+8 -1

No files matched your search

+3
View File
@@ -418,6 +418,9 @@ int MODULEMAINFUNC (int argc, char** argv){
WSADATA wd;
WSAStartup(MAKEWORD( 1, 1 ), &wd);
#else
/* a client gone while it is written to is an error, not the end */
signal(SIGPIPE, SIG_IGN);
#endif
#endif