mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
ignore SIGPIPE signal for custom pagers
This commit is contained in:
parent
e7f82b6a8c
commit
2a42fe8f3f
@ -957,6 +957,7 @@ private:
|
|||||||
String pager = config().getString("pager", "");
|
String pager = config().getString("pager", "");
|
||||||
if (!pager.empty())
|
if (!pager.empty())
|
||||||
{
|
{
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
pager_cmd = ShellCommand::execute(pager, true);
|
pager_cmd = ShellCommand::execute(pager, true);
|
||||||
out_buf = &pager_cmd->in;
|
out_buf = &pager_cmd->in;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user