diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-09 21:46:01 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-09 21:46:01 +0100 |
commit | 6bd4dac6e2a87943444a4b909f4857ad27b68cf3 (patch) | |
tree | c87bfedddfd5951a8e37af46cd9cda0655d907c5 /src | |
parent | Merge pull request #2548 (diff) | |
download | monero-6bd4dac6e2a87943444a4b909f4857ad27b68cf3.tar.xz |
util: ignore SIGPIPE
In practice, this seems to cause monero-wallet-rpc to exit
when ^C quits whatever its output is piped into (such as tee),
but it saves, while it did not before.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 48bdbbc28..0f0308b1b 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -146,9 +146,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 |