Skip to content

Commit

Permalink
[lwp]修正kill(pid < -1)时的返回值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 committed Jan 22, 2025
1 parent 0800db1 commit 0483136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lwp/lwp_syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ sysret_t sys_kill(int pid, int signo)
switch (kret)
{
case -RT_ENOENT:
case -ECHILD:
sysret = -ESRCH;
break;
case -RT_EINVAL:
Expand Down

0 comments on commit 0483136

Please sign in to comment.