summaryrefslogtreecommitdiff
path: root/rpmio/rpmsq.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-03 12:04:57 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-03 12:04:57 +0300
commitcd040ba59b00ce709fa97016df9eaf733adc1ccf (patch)
treeab7392a076eaf60e336d4987de074b9f26ac931a /rpmio/rpmsq.c
parentdf206dbaaf59af1c4879ecd3739f2cf9a46e48af (diff)
downloadlibrpm-tizen-cd040ba59b00ce709fa97016df9eaf733adc1ccf.tar.gz
librpm-tizen-cd040ba59b00ce709fa97016df9eaf733adc1ccf.tar.bz2
librpm-tizen-cd040ba59b00ce709fa97016df9eaf733adc1ccf.zip
Add rpmsqIsCaught() for testing if a signal has been caught
Diffstat (limited to 'rpmio/rpmsq.c')
-rw-r--r--rpmio/rpmsq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpmio/rpmsq.c b/rpmio/rpmsq.c
index 160329aa6..6d866266f 100644
--- a/rpmio/rpmsq.c
+++ b/rpmio/rpmsq.c
@@ -171,6 +171,11 @@ static struct rpmsig_s {
{ -1, NULL },
};
+int rpmsqIsCaught(int signum)
+{
+ return sigismember(&rpmsqCaught, signum);
+}
+
void rpmsqAction(int signum,
void * info, void * context)
{