Use magnun's code and force the SIGALRM bug.