Fix crash when handling the ALRM signal.