Skip to content

Commit

Permalink
sserver: ignore SIGPIPE, avoiding process be killed
Browse files Browse the repository at this point in the history
  • Loading branch information
YihaoPeng committed Mar 17, 2019
1 parent 99895c2 commit ee1ddc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sserver/StratumServerMain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee1ddc1

Please sign in to comment.