Re: libpq and psql not on same page about SIGPIPE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq and psql not on same page about SIGPIPE
Date
Msg-id 2205.1101958282@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq and psql not on same page about SIGPIPE  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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 by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: libpq and psql not on same page about SIGPIPE
Next
From: Neil Conway
Date:
Subject: Re: Please release (was Re: nodeAgg perf tweak)