Re: libpq and psql not on same page about SIGPIPE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq and psql not on same page about SIGPIPE
Дата
Msg-id 2205.1101958282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq and psql not on same page about SIGPIPE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Yes, that is the logic in my patch, except that I don't check errno, I
> just call sigpending().

No, that's wrong: if there is a pending SIGPIPE that belongs to the
outer app, you'd clear it.

> There are a few writes and it seemed impossible
> to check them all.

Hmm?  There is only one place this needs to be done, namely
pqsecure_write.

BTW, have you posted the patch yet or are you still working on it?
The mail server seems a bit flaky today ...
        regards, tom lane


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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: libpq and psql not on same page about SIGPIPE
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Please release (was Re: nodeAgg perf tweak)