mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
nanosleep(): Was not re-enabling interrupts. Fix from Jason Jiang
This commit is contained in:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user