Make the names of the execsem consistent; Need defaults for some CONFIG_ settings

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5605 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2013-02-03 18:36:46 +00:00
parent e0e0006bc9
commit 2c81ddf0d3
3 changed files with 8 additions and 8 deletions

View File

@ -47,6 +47,10 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef CONFIG_POSIX_SPAWN_PROXY_STACKSIZE
# define CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 1024
#endif
/****************************************************************************
* Public Type Definitions
****************************************************************************/

View File

@ -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 */

View File

@ -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 */