The sigalarm.c program demonstrates how an Open Server application can use a UNIX SIGALARM signal to schedule periodic events. Specifically, sigalarm.c:
Spawns, using srv_spawn, a service thread that sleeps until an alarm wakes it up. Each time the service thread is awakened, it writes a message to the Open Server log file using the srv_log routine.
Installs a SIGALARM handler, using the srv_signal routine, that wakes up a sleeping service thread each time the SIGALARM handler is called. sigalarm.c requests that a SIGALARM be delivered at a particular interval, using the UNIX alarm call.
This sample does not require a client application. Check the srv.log file for messages to determine if it has started correctly.