Обсуждение: pgsql: Restore psql's SIGPIPE setting if popen() fails.

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/93c78ba19b378b4b54dad5ceb4fdf063bb0998e1

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