svcAlarm()
The svcAlarm() function can conveniently be used to set the number of
seconds to wait before a SIGALRM signal is issued to the current process. This
function can only be used if the SIGALRM signal is to be issued to the current
process. It assumes when a callback was registered with
svcSetAlarmCallback(), that it was within the same process (not thread or
child process of any kind) as the current process calling svcAlarm(). If this
function is not used, it is the application's responsibility to create its own alarm by
issuing sleep() and kill() commands to the correct process ID.
Prototype
void svcAlarm(unsigned int secs)
Parameters
secs
Number of seconds to wait before
S
ERVICE
SIGALRM
signal is issued.
X
M
800 S
P
ERIES
ROGRAMMERS
F
UNCTIONS
svcAlarm()
167
G
UIDE