Skip to content

Commit

Permalink
Fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrini15 committed Jan 24, 2024
1 parent b627e34 commit ed31e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pb_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ed31e5c

Please sign in to comment.