mirror of
https://github.com/apache/nuttx.git
synced 2026-05-15 13:16:28 +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)
|
||||
{
|
||||
/* The timeout "error" is the normal, successful result */
|
||||
|
||||
irqrestore(flags);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user