Skip to content

Commit 6e3c9ac

Browse files
heyuanjie87Rbb666
authored andcommitted
[lwp]修正kill(pid < -1)时的返回值错误
1 parent a63b97e commit 6e3c9ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/lwp/lwp_syscall.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ sysret_t sys_kill(int pid, int signo)
10001000
switch (kret)
10011001
{
10021002
case -RT_ENOENT:
1003+
case -ECHILD:
10031004
sysret = -ESRCH;
10041005
break;
10051006
case -RT_EINVAL:

0 commit comments

Comments
 (0)