|
rpm 4.17.0
|
Macros | |
| #define | RPMSQ_DFL ((rpmsqAction_t)0) |
| SIG_DFL, SIG_IGN and SIG_ERR counterparts. | |
Typedefs | |
| typedef void(* | rpmsqAction_t) (int signum, siginfo_t *info, void *context) |
| Default signal handler prototype. | |
Functions | |
| int | rpmsqIsCaught (int signum) |
| Test if given signal has been caught (while signals blocked). | |
| int | rpmsqActivate (int state) |
| Activate (or disable) the signal queue. | |
| rpmsqAction_t | rpmsqSetAction (int signum, rpmsqAction_t handler) |
| Set or delete a signal handler for a signal. | |
| int | rpmsqBlock (int op) |
| Block or unblock (almost) all signals. | |
| int | rpmsqPoll (void) |
| Poll for caught signals, executing their handlers. | |
Signal Queue API.
| #define RPMSQ_DFL ((rpmsqAction_t)0) |
| typedef void(* rpmsqAction_t) (int signum, siginfo_t *info, void *context) |
| int rpmsqActivate | ( | int | state | ) |
Activate (or disable) the signal queue.
| state | 1 to enable, 0 to disable |
| int rpmsqBlock | ( | int | op | ) |
Block or unblock (almost) 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.
| op | SIG_BLOCK/SIG_UNBLOCK |
| int rpmsqIsCaught | ( | int | signum | ) |
Test if given signal has been caught (while signals blocked).
Similar to sigismember() but operates on internal signal queue.
| signum | signal to test for |
| int rpmsqPoll | ( | void | ) |
Poll for caught signals, executing their handlers.
| rpmsqAction_t rpmsqSetAction | ( | int | signum, |
| rpmsqAction_t | handler ) |
Set or delete a signal handler for a signal.
| signum | signal number |
| handler | signal handler or NULL to delete |