From 805916901a01887c7931f95d5de0dcafe24cae55 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 15 Mar 2014 07:33:05 -0600 Subject: [PATCH] nanosleep(): Was not re-enabling interrupts. Fix from Jason Jiang --- sched/nanosleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/nanosleep.c b/sched/nanosleep.c index 5e3bb64fee8..c63ccf22fec 100644 --- a/sched/nanosleep.c +++ b/sched/nanosleep.c @@ -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; }