[Lldb-commits] [PATCH] Fix socket leak in lldb-server platform
Vince Harron
vince at nethacker.com
Mon Mar 30 17:27:48 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8697
Files:
lldb/trunk/tools/lldb-server/lldb-platform.cpp
Index: lldb/trunk/tools/lldb-server/lldb-platform.cpp
===================================================================
--- lldb/trunk/tools/lldb-server/lldb-platform.cpp
+++ lldb/trunk/tools/lldb-server/lldb-platform.cpp
@@ -287,6 +287,10 @@
while (waitpid(-1, nullptr, WNOHANG) > 0);
if (fork())
{
+ // Parent doesn't need a connection to the lldb client
+ delete socket;
+ socket = nullptr;
+
// Parent will continue to listen for new connections.
continue;
}
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8697.22921.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150331/ffdfae06/attachment.bin>
More information about the lldb-commits
mailing list