From 3d03cda6b893bd605edc901922e896548e9e8115 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 1 Mar 2017 22:52:43 +0000 Subject: [PATCH] ignore SIGPIPE --- sockssrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sockssrv.c b/sockssrv.c index 477739a..e26c04d 100644 --- a/sockssrv.c +++ b/sockssrv.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -385,6 +386,7 @@ int main(int argc, char** argv) { dprintf(2, "error: auth-once option must be used together with user/pass\n"); return 1; } + signal(SIGPIPE, SIG_IGN); struct server s; sblist *threads = sblist_new(sizeof (struct thread*), 8); if(server_setup(&s, listenip, port)) { -- 2.11.4.GIT