rpm  4.10.0
Typedefs | Functions
Signal Queue API.

Typedefs

typedef void(* rpmsqAction_t )(int signum)
 Default signal handler prototype.

Functions

int rpmsqIsCaught (int signum)
 Test if given signal has been caught (while signals blocked).
void rpmsqAction (int signum)
 Default signal handler.
int rpmsqEnable (int signum, rpmsqAction_t handler)
 Enable or disable a signal handler.

Typedef Documentation

typedef void(* rpmsqAction_t)(int signum)

Default signal handler prototype.

Parameters:
signumsignal number
info(siginfo_t) signal info
contextsignal context

Definition at line 24 of file rpmsq.h.


Function Documentation

void rpmsqAction ( int  signum)

Default signal handler.

Parameters:
signumsignal number
info(siginfo_t) signal info
contextsignal context
int rpmsqEnable ( int  signum,
rpmsqAction_t  handler 
)

Enable or disable a signal handler.

Parameters:
signumsignal to enable (or disable if negative)
handlersa_sigaction handler (or NULL to use rpmsqHandler())
Returns:
no. of refs, -1 on error
int rpmsqIsCaught ( int  signum)

Test if given signal has been caught (while signals blocked).

Similar to sigismember() but operates on internal signal queue.

Parameters:
signumsignal to test for
Returns:
1 if caught, 0 if not and -1 on error