It depends on when EINTR is triggered. Theoretically, we could just break since the only case would be alarm() is raised. But I would like to let the program follow it own logic, if it's triggered by alarm, the loop with terminate itself.