From 7190f1e9ac5121c7a0ff8807dd0c0e96fff5e286 Mon Sep 17 00:00:00 2001 From: iMoD1998 <16210252+iMoD1998@users.noreply.github.com> Date: Mon, 9 Nov 2026 00:48:47 +0000 Subject: [PATCH] Fix kill EINVAL --- qiling/os/posix/syscall/unistd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiling/os/posix/syscall/unistd.py b/qiling/os/posix/syscall/unistd.py index 62cb6f61a..204c9b84d 100644 --- a/qiling/os/posix/syscall/unistd.py +++ b/qiling/os/posix/syscall/unistd.py @@ -153,7 +153,7 @@ def ql_syscall_capset(ql: Qiling, hdrp: int, datap: int): def ql_syscall_kill(ql: Qiling, pid: int, sig: int): if sig not in range(NSIG): - return -1 # EINVAL + return -EINVAL if pid > 0 and pid != ql.os.pid: return -1 # ESRCH