Re: PQconnectStart() and -EINTR

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Ford <david(at)blue-labs(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PQconnectStart() and -EINTR
Date: 2001-10-24 18:09:24
Message-ID: 21649.1003946964@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Ford <david(at)blue-labs(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-10-24 18:15:20 Re: copying a large object?
Previous Message Tom Lane 2001-10-24 17:57:30 Re: autoconf taking forever?