main: sigaction + raise instead of signal + kill.