Change process kill to call Process::Destroy (force_kill = true);
authorJason Molenda <jmolenda@apple.com>
Fri, 1 May 2015 23:39:48 +0000 (23:39 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 1 May 2015 23:39:48 +0000 (23:39 +0000)
follow-up to the change in r235158.  Right now if you attach to
a process and type "kill", lldb doesn't kill it, it detaches.
<rdar://problem/20691198>

llvm-svn: 236363

lldb/source/Commands/CommandObjectProcess.cpp

index c9d9210..a249c4e 100644 (file)
@@ -1466,7 +1466,7 @@ protected:
 
         if (command.GetArgumentCount() == 0)
         {
-            Error error (process->Destroy(false));
+            Error error (process->Destroy(true));
             if (error.Success())
             {
                 result.SetStatus (eReturnStatusSuccessFinishResult);