Re: Bug in signal handler - Mailing list pgsql-hackers

From Florian Weimer
Subject Re: Bug in signal handler
Date
Msg-id 87hd3v6wxg.fsf@mid.deneb.enyo.de
Whole thread Raw
In response to Re: Bug in signal handler  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
* Martijn van Oosterhout:

>> The fact remains that the postmaster has *always* been coded like that,
>> and we have *never* seen any problems.  Barring proof that there is a
>> problem, I'm uninterested in rewriting it just because someone doesn't
>> like it.
>
> It should probably also be remembered that the "fix" would involve either
> polling the status by having select() return more often, or using
> sigsetjmp/siglongjmp. The cure is definitly worse than the disease.

The standard trick is to add a pipe to the select and write to that
from the signal handler.  I'm not sure if it's worth the effort,
though.


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: DH_check return value test correct?
Next
From: Josh Berkus
Date:
Subject: Re: audit table containing Select statements submitted