table of contents
dsignal.h(3) | libdaemon | dsignal.h(3) |
NAME¶
dsignal.h - Contains the API for serializing signals to a pipe for usage with select() or poll().SYNOPSIS¶
Functions¶
int daemon_signal_init (int s,...)
Detailed Description¶
Contains the API for serializing signals to a pipe for usage with select() or poll().Function Documentation¶
void daemon_signal_done (void)¶
Free resources of signal handling, should be called before daemon exit. Examples:testd.c.
int daemon_signal_fd (void)¶
Return the file descriptor the daemon should select() on for reading. Whenever the descriptor is ready you should call daemon_signal_next() to get the next signal queued. Returns:The file descriptor or negative on
failure
testd.c.
int daemon_signal_init (int s, ...)¶
Installs signal handlers for the specified signals. Parameters:s,... The signals to install handlers
for. The list should be terminated by 0
Returns:
zero on success, nonzero on failure
testd.c.
int daemon_signal_install (int s)¶
Install a signal handler for the specified signal. Parameters:s The signalto install handler
for
Returns:
zero onsuccess,nonzero on failure
int daemon_signal_next (void)¶
Return the next signal received. This function will not block. Instead it returns 0 if no signal is queued. Returns:The next queued signal if one is queued, zero
if none is queued, negative on failure.
testd.c.
Author¶
Generated automatically by Doxygen for libdaemon from the source code.17 Jan 2010 | Version 0.14 |