Re: PQconnectStart() and -EINTR - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PQconnectStart() and -EINTR
Date
Msg-id 21649.1003946964@sss.pgh.pa.us
Whole thread Raw
In response to PQconnectStart() and -EINTR  (David Ford <david@blue-labs.org>)
List pgsql-hackers
David Ford <david@blue-labs.org> writes:
> I've got a bit of a problem.  I added a fast SIGALRM handler in my 
> project to do various maintenance and this broke PQconnectStart().

It'd probably be reasonable to just retry the connect() call if it
fails with EINTR.  If that works for you, send a patch...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Zenon"
Date:
Subject: join instruction
Next
From: Tom Lane
Date:
Subject: Re: copying a large object?