Re: server crash => libpq poll() hangs forever (Linux)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: björn lundin <b(dot)f(dot)lundin(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: server crash => libpq poll() hangs forever (Linux)
Date: 2010-06-10 03:11:43
Message-ID: 6149.1276139503@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-1?Q?bj=F6rn_lundin?= <b(dot)f(dot)lundin(at)gmail(dot)com> writes:
> On 9 Juni, 16:37, t(dot)(dot)(dot)(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) wrote:
>> "very old report" is right. What makes you think that has anything to
>> do with modern kernel versions?

> Interesting. The bug report includes a short code snippet which
> compiles to a c program,
> that shows the bug is still present. I'm on

Mph. Reading the bug report and the code snippet more closely, the
complaint is totally irrelevant to libpq anyway. What he's complaining
about is a case where another thread of a multithreaded application
close()s the descriptor that a poll() is using. That is *not* related
to the other end of the connection closing the connection, which is the
case the OP was concerned about.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2010-06-10 06:50:14 Re: Cognitive dissonance
Previous Message Uwe Schroeder 2010-06-10 02:39:42 Re: calculating distance between longitude and latitude