[Rpm-maint] RFC: Unblocking of signals within rpm
Panu Matilainen
pmatilai at redhat.com
Fri Jul 20 08:55:43 UTC 2007
On Thu, 19 Jul 2007, Michael Schroeder wrote:
> On Thu, Jul 19, 2007 at 01:30:07PM +0300, Panu Matilainen wrote:
>> Yes, but then this is a terminating signal handler, and AFAICT does just
>> what's described in glibc manual as the cleanest way to handle this:
>> http://www.gnu.org/software/libc/manual/html_node/Termination-in-Handler.html
>
> In this example all the clean up actions are async-signal-safe.
> I bet closing a Berkeley database is not...
Yup... I guess I was a little bit over-enthusiastic about getting the
thing solved so I read way way too much into the termination-in-handler
section, ignoring all the other warnings. I just love making a total
fool out of myself in public, duh :)
Oh well, back to plan B, whatever that is. For python users, I just added
methods for checking pending signals and exiting cleanly, C/C++ API users
already had those available. There are some complications with that but
it'll get the job done.
- Panu -
- Panu -
More information about the Rpm-maint
mailing list