Restore psql's SIGPIPE setting if popen() fails.
authorTom Lane
Wed, 7 Dec 2016 17:39:24 +0000 (12:39 -0500)
committerTom Lane
Wed, 7 Dec 2016 17:39:24 +0000 (12:39 -0500)
commitcf59a8a4fe8dd83a069737ff32f1f211f352036c
treefc5b022d5d9feb765bdd14f48b74739d468bf18c
parentccb84dae13c9fcb0dec00ee337179e9f36700ba3
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.
src/bin/psql/print.c