diff options
Diffstat (limited to 'rpmio/rpmsq.h')
-rw-r--r-- | rpmio/rpmsq.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rpmio/rpmsq.h b/rpmio/rpmsq.h index 7a2cd8ba1..8cb2dc324 100644 --- a/rpmio/rpmsq.h +++ b/rpmio/rpmsq.h @@ -45,6 +45,15 @@ int rpmsqActivate(int state); rpmsqAction_t rpmsqSetAction(int signum, rpmsqAction_t handler); /** \ingroup rpmsq + * Block or unblock (all) signals. + * The operation is "reference counted" so the calls can be nested, + * and signals are only unblocked when the reference count falls to zero. + * @param op SIG_BLOCK/SIG_UNBLOCK + * @return 0 on success, -1 on error + */ +int rpmsqBlock(int op); + +/** \ingroup rpmsq * Poll for caught signals, executing their handlers. * @return no. active signals found */ |