get_signal_to_deliver() already resets the signal handler ifSA_ONESHOT is set in ka->sa.sa_flags, there's no need to do it againin handle_signal(). Furthermore, because we were modifyingka->sa.sa_handler (which is a copy of sighand->action[]) instead ofsighand->action[] the original code had no effect on signal delivery.