signal, sigaction to common code