Defined by c11: https://en.cppreference.com/w/c/program/quick_exit https://en.cppreference.com/w/c/program/at_quick_exit Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
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.