]> granicus.if.org Git - postgresql/commit
Restore psql's SIGPIPE setting if popen() fails.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Dec 2016 17:39:24 +0000 (12:39 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Dec 2016 17:39:24 +0000 (12:39 -0500)
commit311bc147ff0924b651f36910925a163c4f3b4a6c
treed30cb57d120c1a105a21812ad7796edc16f6f0ed
parent1ec5cc025b419f78bf1b16c7e857e9849cde2425
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