mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 23:05:20 +00:00
sched/pthread: Should call up_exit in pthread_exit
since _exit may kill all sibling thread when
HAVE_GROUP_MEMBERS equal true. Regressed by:
commit 622677d4a1
Author: Ville Juven <ville.juven@unikie.com>
Date: Mon May 2 15:15:06 2022 +0300
libc: Implement exit, atexit, on_exit and cxa_exit on the user side
For CONFIG_BUILD_KERNEL using the sched/task/task_exithook implementation
will just not work. It calls user code with kernel privileges which is
a bit of a security issue.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3f65b562bb
commit
feb54fc272
1 changed files with 1 additions and 1 deletions
|
|
@ -109,5 +109,5 @@ void nx_pthread_exit(FAR void *exit_value)
|
|||
* calling atexit() functions.
|
||||
*/
|
||||
|
||||
_exit(EXIT_SUCCESS);
|
||||
up_exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue