aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-14 14:54:42 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-14 14:54:42 +0200
commitf26e7a84a693c1e893dba32f0d4bf82ddc95d47e (patch)
treef204307bf2cace1d197bd13e46f362447fe62815 /src/common
parentMerge pull request #2617 (diff)
parentutil: ignore SIGPIPE (diff)
downloadmonero-f26e7a84a693c1e893dba32f0d4bf82ddc95d47e.tar.xz
Merge pull request #2620
6bd4dac6 util: ignore SIGPIPE (moneromooo-monero)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 2e4d6e917..1aac026c1 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -148,9 +148,10 @@ namespace tools
}
return r;
#else
- /* Only blocks SIGINT and SIGTERM */
+ /* Only blocks SIGINT, SIGTERM and SIGPIPE */
signal(SIGINT, posix_handler);
signal(SIGTERM, posix_handler);
+ signal(SIGPIPE, SIG_IGN);
m_handler = t;
return true;
#endif