pgsql: Restore psql's SIGPIPE setting if popen() fails.
pgsql: Restore psql's SIGPIPE setting if popen() fails.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
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. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/433e65c2bd907723a5d93b3f2ff0bdbc77a0b625 Modified Files -------------- src/bin/psql/print.c | 4 ++++ 1 file changed, 4 insertions(+)