[smart] fix the setup of fake lwp in sys_execve (#7855)

This commit is contained in:
Shell 2023-07-25 15:58:10 +08:00 committed by GitHub
parent ff0c148244
commit ef91876ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2514,8 +2514,9 @@ sysret_t sys_execve(const char *path, char *const argv[], char *const envp[])
rt_hw_interrupt_enable(level);
/* setup the signal for the dummy lwp, so that is can be smoothly recycled */
/* setup the signal, timer_list for the dummy lwp, so that is can be smoothly recycled */
lwp_signal_init(&new_lwp->signal);
rt_list_init(&new_lwp->timer);
lwp_ref_dec(new_lwp);
arch_start_umode(lwp->args,