4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-15 07:29:17 +08:00

[lwp]修正kill(pid < -1)时的返回值错误

This commit is contained in:
heyuanjie87 2025-01-22 14:26:05 +08:00 committed by Rbb666
parent a63b97e316
commit 6e3c9acd39

View File

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