I might even name it register_signal_handler and have it accept the signal and the handler.