Use sigaction(2) instead of signal(2)