From ee1ddc1457d7fc4f7fa46f396dcfdf88a920723b Mon Sep 17 00:00:00 2001 From: YihaoPeng Date: Sun, 17 Mar 2019 12:07:23 +0800 Subject: [PATCH] sserver: ignore SIGPIPE, avoiding process be killed --- src/sserver/StratumServerMain.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sserver/StratumServerMain.cc b/src/sserver/StratumServerMain.cc index 57ec3d801..66300c83b 100644 --- a/src/sserver/StratumServerMain.cc +++ b/src/sserver/StratumServerMain.cc @@ -124,6 +124,8 @@ int main(int argc, char **argv) { signal(SIGTERM, handler); signal(SIGINT, handler); + // ignore SIGPIPE, avoiding process be killed + signal(SIGPIPE, SIG_IGN); try { // check if we are using testnet3