diff options
Diffstat (limited to 'nuttx/sched/sem_open.c')
-rw-r--r-- | nuttx/sched/sem_open.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/sched/sem_open.c b/nuttx/sched/sem_open.c index d5b22f018..817c36b49 100644 --- a/nuttx/sched/sem_open.c +++ b/nuttx/sched/sem_open.c @@ -47,7 +47,9 @@ #include <string.h> #include <semaphore.h> #include <errno.h> + #include <nuttx/kmalloc.h> + #include "sem_internal.h" /**************************************************************************** @@ -75,7 +77,7 @@ ****************************************************************************/ /**************************************************************************** - * Function: sem_open + * Name: sem_open * * Description: * This function establishes a connection between named semaphores and a @@ -198,6 +200,7 @@ FAR sem_t *sem_open (FAR const char *name, int oflag, ...) } } } + sched_unlock(); } |