[Rpm-maint] [PATCH] Add API to completely disable librpm's use of Unix signal handlers

Colin Walters walters at verbum.org
Fri Jan 23 03:07:56 UTC 2015

Numerous consumers of librpm use it in a pattern where they're
constructing fresh chroots.  For example, rpm-ostree operates this
way, and is used to provide atomic upgrades in concert with rpm.

If the process dies due to SIGINT or another signal, the root can
simply be discarded.

Currently today, rpm-ostree undoes the signal handlers after loading
librpm so that Control-C does what I want, but there's still a race
condition where the interrupt can be lost.

Add an API so callers can disable the behavior.
 rpmio/rpmsq.c | 16 ++++++++++++++++
 rpmio/rpmsq.h |  2 ++
 2 files changed, 18 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-API-to-completely-disable-librpm-s-use-of-Unix-s.patch
Type: text/x-patch
Size: 2103 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20150122/37806fd0/attachment.bin>

More information about the Rpm-maint mailing list