dbg: make sure debugged process terminates on exit
This commit is contained in:
parent
119d7731d8
commit
358c240c8c
@ -462,6 +462,7 @@ static void show_commandline(pid_t pid, int status, struct regs * regs) {
|
||||
}
|
||||
|
||||
_exitDebugger:
|
||||
ptrace(PTRACE_CONT, pid, NULL, (void*)(uintptr_t)SIGKILL);
|
||||
fprintf(stderr, "Exiting.\n");
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user