Two types of signal handlers now supported.