Re: Receiving SIGPIPE for PQfinish()

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: Receiving SIGPIPE for PQfinish()
Дата
Msg-id 20060313155531.GA191@alamut
обсуждение исходный текст
Ответ на Re: Receiving SIGPIPE for PQfinish()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Receiving SIGPIPE for PQfinish()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-interfaces
On Mar 12 11:18, Tom Lane wrote:
> pqsecure_write should have disabled SIGPIPE already.  You should look
> into why that is seemingly not working.

When I omit --enable-thread-safety, code doesn't handle in the case of
a SIG_ERR return on the call to pqsignal() made from pqsecure_write().

Furthermore, I still couldn't figure out why pqsignal() cannot handle
SIGPIPE - despite pqsignal() doesn't return SIG_ERR. (A related small
debug output is attached.)

Everything works fine when thread safety is enabled.


Regards.

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposed p.tch for error locations
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Proposed p.tch for error locations