Re: innocuous: pgbench does FD_ISSET on invalid socket - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: innocuous: pgbench does FD_ISSET on invalid socket
Date
Msg-id CAB7nPqS6KLfzQr4Tb55=Bjz=bMCof4wnnzc3eWf4LszNDrz52g@mail.gmail.com
Whole thread Raw
In response to Re: innocuous: pgbench does FD_ISSET on invalid socket  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Tue, Feb 16, 2016 at 8:47 AM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Michael Paquier wrote:
>
>> Different issues in the same area:
>> 1) In vacuumdb.c, init_slot() does not check for the return value of PQsocket():
>> slot->sock = PQsocket(conn);
>> 2) In isolationtester.c, try_complete_step() should do the same.
>> 3) In pg_recvlogical.c for StreamLogicalLog() I am spotting the same problem.
>> I guess those ones should be fixed as well, no?
>
> Hmm, yeah, perhaps it's worth closing these too.

Do you think that it would be better starting a new thread? The only
difficulty of this patch is to be sure that each error handling is
done correctly for each one of those frontend modules.
-- 
Michael



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Declarative partitioning
Next
From: Craig Ringer
Date:
Subject: Re: xlc atomics