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
|
@ -109,5 +109,5 @@ void nx_pthread_exit(FAR void *exit_value)
|
||||||
* calling atexit() functions.
|
* calling atexit() functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_exit(EXIT_SUCCESS);
|
up_exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue