[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:
Shell
2023-09-09 09:35:56 +08:00
committed by GitHub
parent b8e332fa2d
commit 47b183a297
12 changed files with 58 additions and 22 deletions

View File

@@ -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;