add the sleep(SIGALRM version) function