Ignore SIGPIPE

This commit is contained in:
SChernykh 2022-03-30 21:53:52 +02:00
parent 5b9b73abcc
commit 7fe032915f

View file

@ -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,