Signal Queue API.
More...
|
typedef void(* | rpmsqAction_t) (int signum, siginfo_t *info, void *context) |
|
Signal Queue API.
◆ RPMSQ_DFL
SIG_DFL, SIG_IGN and SIG_ERR counterparts.
Definition at line 29 of file rpmsq.h.
◆ rpmsqAction_t
typedef void(* rpmsqAction_t) (int signum, siginfo_t *info, void *context) |
- Deprecated:
- Obsolete, do not use.
Default signal handler prototype.
- Parameters
-
signum | signal number |
info | (siginfo_t) signal info |
context | signal context |
Definition at line 24 of file rpmsq.h.
◆ rpmsqActivate()
Activate (or disable) the signal queue.
- Parameters
-
state | 1 to enable, 0 to disable |
- Returns
- 0 on success, negative on error
◆ rpmsqBlock()
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.
- Parameters
-
- Returns
- 0 on success, -1 on error
◆ rpmsqIsCaught()
- Deprecated:
- Obsolete, do not use.
Test if given signal has been caught (while signals blocked). Similar to sigismember() but operates on internal signal queue.
- Parameters
-
- Returns
- 1 if caught, 0 if not and -1 on error
◆ rpmsqPoll()
- Deprecated:
- Obsolete, do not use.
Poll for caught signals, executing their handlers.
- Returns
- no. active signals found
◆ rpmsqSetAction()
- Deprecated:
- Obsolete, do not use.
Set or delete a signal handler for a signal.
- Parameters
-
signum | signal number |
handler | signal handler or NULL to delete |
- Returns
- previous handler, RPMSQ_ERR on error
◆ rpmsqSetInterruptSafety()