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)
commit433e65c2bd907723a5d93b3f2ff0bdbc77a0b625
treed01146e0a1b0019d262fed14f4b13c227af61223
parent82eb5c5144732df7774fe1f83c0b079e068c5be9
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