diff options
Diffstat (limited to 'lldb/tools/debugserver/source/DNB.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/DNB.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp index f60c26fab6d..1b8632eb717 100644 --- a/lldb/tools/debugserver/source/DNB.cpp +++ b/lldb/tools/debugserver/source/DNB.cpp @@ -250,6 +250,10 @@ DNBProcessLaunch (const char *path, if (processSP->Task().TaskPortForProcessID (launch_err) == TASK_NULL) { // We failed to get the task for our process ID which is bad. + // Kill our process otherwise it will be stopped at the entry + // point and get reparented to someone else and never go away. + kill (SIGKILL, pid); + if (err_str && err_len > 0) { if (launch_err.AsString()) |