[Lldb-commits] [lldb] r186597 - Use the correct call to close down the lockdown connection.

Jim Ingham jingham at apple.com
Thu Jul 18 11:48:57 PDT 2013


Author: jingham
Date: Thu Jul 18 13:48:57 2013
New Revision: 186597

URL: http://llvm.org/viewvc/llvm-project?rev=186597&view=rev
Log:
Use the correct call to close down the lockdown connection.

<rdar://problem/14460024>

Modified:
    lldb/trunk/tools/debugserver/source/RNBSocket.cpp

Modified: lldb/trunk/tools/debugserver/source/RNBSocket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBSocket.cpp?rev=186597&r1=186596&r2=186597&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBSocket.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBSocket.cpp Thu Jul 18 13:48:57 2013
@@ -320,10 +320,8 @@ RNBSocket::Disconnect (bool save_errno)
     {
         m_fd_from_lockdown = false;
         m_fd = -1;
-        if (lockdown_deactivate (m_ld_conn) == 0)
-            return rnb_success;
-        else
-            return rnb_err;
+        lockdown_disconnect (m_ld_conn);
+        return rnb_success;
     }
 #endif
     return ClosePort (m_fd, save_errno);





More information about the lldb-commits mailing list