mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-03-24 08:09:02 +00:00
Ignore SIGPIPE
This commit is contained in:
parent
5b9b73abcc
commit
7fe032915f
1 changed files with 4 additions and 0 deletions
|
@ -1288,6 +1288,10 @@ static bool init_uv_threadpool()
|
||||||
|
|
||||||
static bool init_signals(p2pool* pool)
|
static bool init_signals(p2pool* pool)
|
||||||
{
|
{
|
||||||
|
#ifdef SIGPIPE
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
#endif
|
||||||
|
|
||||||
constexpr int signal_names[] = {
|
constexpr int signal_names[] = {
|
||||||
SIGHUP,
|
SIGHUP,
|
||||||
SIGINT,
|
SIGINT,
|
||||||
|
|
Loading…
Reference in a new issue