mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 10:00:24 +00:00
[smart/syscall] fix exit(2) and add exit_group(2) (#8005)
Signed-off-by: shell <smokewood@qq.com> Signed-off-by: shell <wangxiaoyao@rt-thread.com> Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
@@ -152,7 +152,7 @@ void *arch_signal_ucontext_restore(rt_base_t user_sp)
|
||||
else
|
||||
{
|
||||
LOG_I("User frame corrupted during signal handling\nexiting...");
|
||||
sys_exit(EXIT_FAILURE);
|
||||
sys_exit_group(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
return (void *)&new_sp->frame;
|
||||
@@ -191,7 +191,7 @@ void *arch_signal_ucontext_save(rt_base_t lr, siginfo_t *psiginfo,
|
||||
else
|
||||
{
|
||||
LOG_I("%s: User stack overflow", __func__);
|
||||
sys_exit(EXIT_FAILURE);
|
||||
sys_exit_group(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
return new_sp;
|
||||
|
||||
Reference in New Issue
Block a user