News for hackers. Stuff that matters.
Re:Should you be scared of Unix signals? by 0x0 on Tuesday June 14, 2016 @01:00AM (#11899886)
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...
Re:Should you be scared of Unix signals? by JdeBP on Tuesday June 14, 2016 @08:43AM (#11901607)
volatile int isn't necessarily safe. volatile sig_atomic_t would be, however.