Re: APC/socket fix (final?) - Mailing list pgsql-patches

From Tom Lane
Subject Re: APC/socket fix (final?)
Date
Msg-id 27991.1080340828@sss.pgh.pa.us
Whole thread Raw
In response to APC/socket fix (final?)  (Claudio Natoli <claudio.natoli@memetrics.com>)
List pgsql-patches
Claudio Natoli <claudio.natoli@memetrics.com> writes:
> ... However, it just occured to me that
> we could wrap select() by augmenting the read_mask with an addition socket,
> that we know will never be touched, and checking this socket on a "valid"
> return. If this socket is still set, we know we got bitten by the APC/socket
> interaction bug, and can set errno accordingly.

What happens if the socket() call fails?  Even if it succeeds, I don't
know what the semantics are of selecting on an un-bound socket ... it
might perhaps show as error state, for instance.

            regards, tom lane

pgsql-patches by date:

Previous
From: Claudio Natoli
Date:
Subject: Re: APC/socket fix (final?)
Next
From: Claudio Natoli
Date:
Subject: Re: APC/socket fix (final?)