Hacker News new | ask | show | jobs
by cesarb 718 days ago
> either set a global variable

IIRC, the rule is also that said global variable must have the type "volatile sig_atomic_t".