From 7fe032915f80f7407bcc86034ba75dc86fab0839 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 30 Mar 2022 21:53:52 +0200 Subject: [PATCH] Ignore SIGPIPE --- src/p2pool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p2pool.cpp b/src/p2pool.cpp index 7fb94c7..ceddfe8 100644 --- a/src/p2pool.cpp +++ b/src/p2pool.cpp @@ -1288,6 +1288,10 @@ static bool init_uv_threadpool() static bool init_signals(p2pool* pool) { +#ifdef SIGPIPE + signal(SIGPIPE, SIG_IGN); +#endif + constexpr int signal_names[] = { SIGHUP, SIGINT,