diff options
| author | Shell <[email protected]> | 2023-07-25 15:58:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-25 15:58:10 +0800 |
| commit | ef91876ee71a63208aec706147a68f60eae8a2fe (patch) | |
| tree | 021cc5634a61221607c0993407c31e94c7162e6c | |
| parent | ff0c14824499324d025fbc110f6b38f0f33e4040 (diff) | |
[smart] fix the setup of fake lwp in sys_execve (#7855)
| -rw-r--r-- | components/lwp/lwp_syscall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index fa25423523..8aff454529 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -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, |
