mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
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.
This commit is contained in:
parent
86e9de588c
commit
6bd4dac6e2
1 changed files with 2 additions and 1 deletions
|
@ -146,9 +146,10 @@ namespace tools
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
#else
|
#else
|
||||||
/* Only blocks SIGINT and SIGTERM */
|
/* Only blocks SIGINT, SIGTERM and SIGPIPE */
|
||||||
signal(SIGINT, posix_handler);
|
signal(SIGINT, posix_handler);
|
||||||
signal(SIGTERM, posix_handler);
|
signal(SIGTERM, posix_handler);
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
m_handler = t;
|
m_handler = t;
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue