Make sure the pcntl_signal exists before attempting to register signal handlers.