Restore psql's SIGPIPE setting if popen() fails.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b7e1ae2328f7d5a88d8916d78b4561d8ef16f99b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-12-07T17:39:24Z
Releases: 10.0
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.

Files

PathChange+/−
src/fe_utils/print.c modified +2 −0