Re: SIGPIPE handling, take two.

Поиск
Список
Период
Сортировка
От Manfred Spraul
Тема Re: SIGPIPE handling, take two.
Дата
Msg-id 3FB11E70.9090800@colorfullife.com
обсуждение исходный текст
Ответ на Re: SIGPIPE handling, take two.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: SIGPIPE handling, take two.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:

>I don't think we need to complicate pqsignal's API for this.  Instead
>we'd better document that SIGPIPE handling has to be set up and kept
>stable before doing any libpq operations in a multithread app.
>
>
Not reliable.
An app could install it's own signal handler and block SIGPIPE around
all libpq calls. Signal blocking is per-thread. But the SIG_IGN/restore
sequence affects the whole app - PQconnectdb calls would result in
randomly dropped SIGPIPE signals.

--
    Manfred


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SIGPIPE handling, take two.
Следующее
От: Michael Mauger
Дата:
Сообщение: Re: [HACKERS] Proposal: psql force prompting on notty