libpq and psql not on same page about SIGPIPE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема libpq and psql not on same page about SIGPIPE
Дата
Msg-id 8831.1100537696@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: libpq and psql not on same page about SIGPIPE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
libpq compiled with --enable-thread-safety thinks it can set the SIGPIPE
signal handler.  It thinks once is enough.

psql thinks it can arbitrarily flip the signal handler between SIG_IGN
and SIG_DFL.  Ergo, after the first use of the pager for output, libpq's
SIGPIPE handling will be broken.

I submit that psql is unlikely to be the only program that does this,
and therefore that libpq must be considered broken, not psql.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Update TIP 9 please
Следующее
От: "Bort, Paul"
Дата:
Сообщение: Re: psql \e broken again