mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-09 20:04:49 +00:00
Check if debug is dead in r_debug_kill function.
This commit is contained in:
parent
4c244a818c
commit
bf5d2ba3da
@ -451,6 +451,8 @@ R_API int r_debug_syscall(RDebug *dbg, int num) {
|
||||
|
||||
R_API int r_debug_kill(RDebug *dbg, int pid, int tid, int sig) {
|
||||
int ret = R_FALSE;
|
||||
if (r_debug_is_dead (dbg))
|
||||
return R_FALSE;
|
||||
if (dbg->h && dbg->h->kill)
|
||||
ret = dbg->h->kill (dbg, pid, tid, sig);
|
||||
else eprintf ("Backend does not implements kill()\n");
|
||||
|
Loading…
Reference in New Issue
Block a user