Author: cbieneman Date: Tue Apr 18 15:49:05 2017 New Revision: 300589 URL: http://llvm.org/viewvc/llvm-project?rev=300589&view=rev Log: Writing multi-platform code is hard...
Fixing another error from r300579. Modified: lldb/trunk/source/Host/common/MainLoop.cpp Modified: lldb/trunk/source/Host/common/MainLoop.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/MainLoop.cpp?rev=300589&r1=300588&r2=300589&view=diff ============================================================================== --- lldb/trunk/source/Host/common/MainLoop.cpp (original) +++ lldb/trunk/source/Host/common/MainLoop.cpp Tue Apr 18 15:49:05 2017 @@ -176,7 +176,6 @@ Error MainLoop::Run() { // listen to, we // will store the *real* list of events separately. signals.clear(); - read_fds.clear(); #if HAVE_SYS_EVENT_H events.resize(m_read_fds.size() + m_signals.size()); @@ -198,6 +197,7 @@ Error MainLoop::Run() { return Error("kevent() failed with error %d\n", num_events); #else + read_fds.clear(); if (int ret = pthread_sigmask(SIG_SETMASK, nullptr, &sigmask)) return Error("pthread_sigmask failed with error %d\n", ret); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits