mirror of
https://github.com/opa334/TrollStore.git
synced 2025-04-12 23:33:11 +08:00
Return ESRCH (No such process) instead of -1
This commit is contained in:
parent
e8b69f97cc
commit
5e96d9d7dc
@ -21,7 +21,7 @@ int main(int argc, const char* argv[]) {
|
|||||||
int pid = process.rbs_pid;
|
int pid = process.rbs_pid;
|
||||||
if (!pid)
|
if (!pid)
|
||||||
{
|
{
|
||||||
return -1;
|
return ESRCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ret = ptrace(PT_ATTACHEXC, pid, 0, 0);
|
int ret = ptrace(PT_ATTACHEXC, pid, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user