mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
task_spawn: release g_spawn_parmsem and sched_unlock at the ending
Change-Id: Ifcb5b9921e82fc495c4457fdb5f0607f40b07fc0 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -437,7 +437,7 @@ int task_spawn(FAR const char *name, main_t entry,
|
||||
goto errout_with_lock;
|
||||
}
|
||||
|
||||
return (int)pid;
|
||||
ret = (int)pid;
|
||||
|
||||
errout_with_lock:
|
||||
#ifdef CONFIG_SCHED_WAITPID
|
||||
|
||||
Reference in New Issue
Block a user