Handle a signal: Difference between revisions

(omit m4)
Line 109:
{{works with|POSIX}}
 
Standard C's sleep() only provides one-second resolution, so the POSIX usleep() function is used here. (POSIX is not needed for the actual signal handling part.)
<lang C>#include <stdio.h>
#include <stdlib.h> // for exit()
Anonymous user