Ancient oversight in PageOutput(): if popen() fails, we'd better reset
the SIGPIPE handler before returning stdout, because ClosePager() won't.
Noticed while fixing the empty-PAGER issue.
pagerpipe = popen(pagerprog, "w");
if (pagerpipe)
return pagerpipe;
+ /* if popen fails, silently proceed without pager */
+#ifndef WIN32
+ pqsignal(SIGPIPE, SIG_DFL);
+#endif
#ifdef TIOCGWINSZ
}
#endif