pgsql: Restore psql's SIGPIPE setting if popen() fails. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Restore psql's SIGPIPE setting if popen() fails.
Date
Msg-id E1cEgC2-0000XG-Jg@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/29babe981cba76d934aa4936ca393ddd2894c4e7

Modified Files
--------------
src/fe_utils/print.c | 2 ++
1 file changed, 2 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Restore psql's SIGPIPE setting if popen() fails.
Next
From: Tom Lane
Date:
Subject: pgsql: Restore psql's SIGPIPE setting if popen() fails.