3 ms·
I've never seen a safe signal handler beyond a SIGTERM that sets a "volatile int time_to_quit = 1" for a main loop to pick up on later...
by 0x0 10y ago
I've never seen a safe signal handler beyond a SIGTERM that sets a "volatile int time_to_quit = 1" for a main loop to pick up on later...
- JdeBP 10y agovolatile int isn't necessarily safe. volatile sig_atomic_t would be, however.