ecl_musleep() no longer disables interrupts.

This commit is contained in:
Juan Jose Garcia Ripoll 2012-03-17 19:35:33 +01:00
parent 607ecaea2a
commit 0782f9a2fb

View file

@ -117,11 +117,9 @@ ecl_musleep(double time, bool alertable)
tm.tv_sec = (time_t)floor(time);
tm.tv_nsec = (long)((time - floor(time)) * 1e9);
AGAIN:
ecl_disable_interrupts();
code = nanosleep(&tm, &tm);
{
int old_errno = errno;
ecl_enable_interrupts();
if (code < 0 && old_errno == EINTR && !alertable) {
goto AGAIN;
}