...
Code Block | ||
---|---|---|
| ||
void handler(int signum) { #ifndef WINDOWS signal(signum, SIG_DFL); #endif /* handle signal */ } /* ... */ signal(signumSIGUSR1, handler); |
Not all systems have persistent signal handlers (see SIG01-A. Understand implementation-specific details regarding signal handler persistence).
...