summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/spawn_internal.h4
-rw-r--r--nuttx/sched/task_posixspawn.c4
-rw-r--r--nuttx/sched/task_spawn.c8
3 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/sched/spawn_internal.h b/nuttx/sched/spawn_internal.h
index 6520f3947..89021226a 100644
--- a/nuttx/sched/spawn_internal.h
+++ b/nuttx/sched/spawn_internal.h
@@ -47,6 +47,10 @@
* Pre-processor Definitions
****************************************************************************/
+#ifndef CONFIG_POSIX_SPAWN_PROXY_STACKSIZE
+# define CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 1024
+#endif
+
/****************************************************************************
* Public Type Definitions
****************************************************************************/
diff --git a/nuttx/sched/task_posixspawn.c b/nuttx/sched/task_posixspawn.c
index 1b3afdaf3..7fc90c9fa 100644
--- a/nuttx/sched/task_posixspawn.c
+++ b/nuttx/sched/task_posixspawn.c
@@ -233,7 +233,7 @@ static int posix_spawn_proxy(int argc, FAR char *argv[])
g_spawn_parms.result = ret;
#ifndef CONFIG_SCHED_WAITPID
- spawn_semgive(&g_posix_spawn_execsem);
+ spawn_semgive(&g_spawn_execsem);
#endif
return OK;
}
@@ -445,7 +445,7 @@ int posix_spawn(FAR pid_t *pid, FAR const char *path,
goto errout_with_lock;
}
#else
- spawn_semtake(&g_posix_spawn_execsem);
+ spawn_semtake(&g_spawn_execsem);
#endif
/* Get the result and relinquish our access to the parameter structure */
diff --git a/nuttx/sched/task_spawn.c b/nuttx/sched/task_spawn.c
index ec6408df1..2456d777c 100644
--- a/nuttx/sched/task_spawn.c
+++ b/nuttx/sched/task_spawn.c
@@ -52,10 +52,6 @@
* Pre-processor Definitions
****************************************************************************/
-#ifndef CONFIG_POSIX_SPAWN_PROXY_STACKSIZE
-# define CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 1024
-#endif
-
/****************************************************************************
* Private Types
****************************************************************************/
@@ -240,7 +236,7 @@ static int task_spawn_proxy(int argc, FAR char *argv[])
g_spawn_parms.result = ret;
#ifndef CONFIG_SCHED_WAITPID
- spawn_semgive(&g_task_spawn_execsem);
+ spawn_semgive(&g_spawn_execsem);
#endif
return OK;
}
@@ -416,7 +412,7 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
goto errout_with_lock;
}
#else
- spawn_semtake(&g_task_spawn_execsem);
+ spawn_semtake(&g_spawn_execsem);
#endif
/* Get the result and relinquish our access to the parameter structure */