ignore SIGPIPE signal for custom pagers

This commit is contained in:
ks1322 2017-12-10 17:57:08 +03:00
parent e7f82b6a8c
commit 2a42fe8f3f

View File

@ -957,6 +957,7 @@ private:
String pager = config().getString("pager", "");
if (!pager.empty())
{
signal(SIGPIPE, SIG_IGN);
pager_cmd = ShellCommand::execute(pager, true);
out_buf = &pager_cmd->in;
}