All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Turbulence Signal : signal handling support for turbulence

Functions

axl_bool turbulence_signal_block (TurbulenceCtx *ctx, int signal)
 
void turbulence_signal_install (TurbulenceCtx *ctx, axl_bool enable_sigint, axl_bool enable_sighup, TurbulenceSignalHandler signal_handler)
 
int turbulence_signal_received (TurbulenceCtx *ctx, int _signal)
 
void turbulence_signal_sigchld (TurbulenceCtx *ctx, axl_bool enable)
 
axl_bool turbulence_signal_unblock (TurbulenceCtx *ctx, int signal)
 

Detailed Description

Function Documentation

axl_bool turbulence_signal_block ( TurbulenceCtx ctx,
int  signal 
)

Allows to block the provided signal delaying its delivery.

Parameters
ctxThe turbulence context.
signalThe signal to block.
Returns
axl_true if signal was blocked, otherwise axl_false is returned.
void turbulence_signal_install ( TurbulenceCtx ctx,
axl_bool  enable_sigint,
axl_bool  enable_sighup,
TurbulenceSignalHandler  signal_handler 
)

Allows to install default signal handling.

int turbulence_signal_received ( TurbulenceCtx ctx,
int  _signal 
)

Signal notify facility.

This function is used to signal on the appropriate TurbulenceCtx, a particular signal received.

Parameters
ctxThe turbulence context where the signal will be handled.
_signalThe signal received.
Returns
Returns 0 or the pid in the case the signal is SIGHLD.

References msg, and turbulence_reload_config().

void turbulence_signal_sigchld ( TurbulenceCtx ctx,
axl_bool  enable 
)

Allows to enable sigchild handling.

References msg.

axl_bool turbulence_signal_unblock ( TurbulenceCtx ctx,
int  signal 
)

Allows to unblock the provided signal delaying its delivery.

Parameters
ctxThe turbulence context.
signalThe signal to unblock.
Returns
axl_true if signal was unblocked, otherwise axl_false is returned.