1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-04-05 03:53:10 +08:00

Return ESRCH (No such process) instead of -1

This commit is contained in:
Duy Tran Khanh 2024-01-23 16:23:40 +07:00 committed by GitHub
parent e8b69f97cc
commit 5e96d9d7dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ int main(int argc, const char* argv[]) {
int pid = process.rbs_pid;
if (!pid)
{
return -1;
return ESRCH;
}
int ret = ptrace(PT_ATTACHEXC, pid, 0, 0);