]> 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)
commit29babe981cba76d934aa4936ca393ddd2894c4e7
tree64d95254cf770ab04896eba5f4033c045eb09bcb
parentbb39f58f76b43bf0ef234e1baaf824e2cb9c9210
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/fe_utils/print.c