dbg: make sure debugged process terminates on exit

This commit is contained in:
K. Lange 2021-09-24 06:34:02 +09:00
parent 119d7731d8
commit 358c240c8c

View File

@ -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);
}