* Do not display 'Cannot attach' when pid = -1

This commit is contained in:
pancake 2011-06-21 00:53:05 +02:00
parent 07790d9932
commit 3a5ddb3346
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ R_API int r_debug_attach(RDebug *dbg, int pid) {
//dbg->pid = pid;
//dbg->tid = ret;
r_debug_select (dbg, pid, ret); //dbg->pid, dbg->tid);
} else eprintf ("Cannot attach to this pid\n");
} else if (pid != -1)
eprintf ("Cannot attach to this pid\n");
} else eprintf ("dbg->attach = NULL\n");
return ret;
}