mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-15 09:21:00 +00:00
Don't re-attach
This commit is contained in:
parent
7e1875e4ff
commit
98830cf44c
@ -373,9 +373,8 @@ static int r_debug_native_attach(RDebug *dbg, int pid) {
|
||||
perror ("ptrace (PT_ATTACH)");
|
||||
ret = pid;
|
||||
#else
|
||||
ret = ptrace (PTRACE_ATTACH, pid, 0, 0);
|
||||
if (ret!=-1)
|
||||
ret = pid;
|
||||
// No need to attach here as r2 has already been attached to the child process after the fork
|
||||
ret = pid;
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user