From ed31e5ca1406e01cb96b4b554f33b9ea71fbec94 Mon Sep 17 00:00:00 2001 From: Francesco Petrini Date: Tue, 23 Jan 2024 16:39:31 -0800 Subject: [PATCH] Fix logic error --- src/pb_stub.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pb_stub.cc b/src/pb_stub.cc index f838fba8..e5e60ee5 100644 --- a/src/pb_stub.cc +++ b/src/pb_stub.cc @@ -1917,7 +1917,7 @@ ParentProcessActive(DWORD parent_id) bool ParentProcessActive(pid_t parent_id) { - return (kill(parent_id, 0) == -1); + return (kill(parent_id, 0) == 0); } #endif