[Rpm-maint] RFC: Unblocking of signals within rpm

Michael Schroeder mls at suse.de
Thu Jul 19 10:17:39 UTC 2007

On Thu, Jul 19, 2007 at 12:58:29PM +0300, Panu Matilainen wrote:
> Attached patch turns the signal handling within rpmdb upside down: we no 
> longer run the whole damn thing with termination signals blocked with 
> occasional checking possibly resulting in exit() from deep within rpmlib, 
> but instead have an active signal handler that will mop up any open 
> transactions and iterators and pass on the signal to caller.

Whoa, doing complex things in a signal handler is very dangerous.
You can interrupt rpm deep inside some glibc function like "malloc".


Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg

More information about the Rpm-maint mailing list