[Lldb-commits] [PATCH] D126702: [lldb] Fix TCPSocket::Connect when getaddrinfo returns multiple addrs

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 13 23:49:23 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG926a7ecdc8b2: [lldb] Fix TCPSocket::Connect when getaddrinfo returns multiple addrs (authored by labath).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126702/new/

https://reviews.llvm.org/D126702

Files:
  lldb/source/Host/common/TCPSocket.cpp


Index: lldb/source/Host/common/TCPSocket.cpp
===================================================================
--- lldb/source/Host/common/TCPSocket.cpp
+++ lldb/source/Host/common/TCPSocket.cpp
@@ -170,7 +170,7 @@
     if (-1 == llvm::sys::RetryAfterSignal(-1, ::connect, GetNativeSocket(),
                                           &address.sockaddr(),
                                           address.GetLength())) {
-      CLOSE_SOCKET(GetNativeSocket());
+      Close();
       continue;
     }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126702.436671.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220614/62913958/attachment.bin>


More information about the lldb-commits mailing list