Restore psql's SIGPIPE setting if popen() fails.
Tom Lane <tgl@sss.pgh.pa.us>
Restore psql's SIGPIPE setting if popen() fails. 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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/print.c | modified | +4 −0 |