]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commit93c78ba19b378b4b54dad5ceb4fdf063bb0998e1
treeb2c08e1379712cda21f351ec54ffcb7ecd9b5f72
parent370c7a863aa7410029d1406a43871722b1f9a8af
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