nanosleep(): Was not re-enabling interrupts. Fix from Jason Jiang

This commit is contained in:
Gregory Nutt 2014-03-15 07:33:05 -06:00
parent 4d34848389
commit 805916901a

View File

@ -172,7 +172,7 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
if (errval == EAGAIN) if (errval == EAGAIN)
{ {
/* The timeout "error" is the normal, successful result */ /* The timeout "error" is the normal, successful result */
irqrestore(flags);
return OK; return OK;
} }