diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-06-03 12:04:57 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-06-03 12:04:57 +0300 |
commit | cd040ba59b00ce709fa97016df9eaf733adc1ccf (patch) | |
tree | ab7392a076eaf60e336d4987de074b9f26ac931a /rpmio/rpmsq.c | |
parent | df206dbaaf59af1c4879ecd3739f2cf9a46e48af (diff) | |
download | librpm-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.c | 5 |
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) { |