Re: SIGPIPE handling

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SIGPIPE handling
Дата
Msg-id 29047.1069005799@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SIGPIPE handling  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: SIGPIPE handling  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Yes, I was afraid of that.  Here's another idea.  If the signal handler
> is SIG_DFL, we install our own signal handler for SIGPIPE, and set/clear a
> global variable before/after we send().

That would address the speed issue but not the multithread correctness
issue.  Also, what happens if the app replaces the signal handler later?

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: SIGPIPE handling
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: SIGPIPE handling