[Lldb-commits] [lldb] r242681 - [NativeProcessLinux] Bugfix in the monitor thread
Pavel Labath
labath at google.com
Mon Jul 20 09:14:47 PDT 2015
Author: labath
Date: Mon Jul 20 11:14:46 2015
New Revision: 242681
URL: http://llvm.org/viewvc/llvm-project?rev=242681&view=rev
Log:
[NativeProcessLinux] Bugfix in the monitor thread
Make sure we dont treat EINTR as a fatal error. I was getting this when trying to profile the
debugger. I'm not sure why this wasn't surfacing before, it could be that the profiler is using
some signals internally.
Modified:
lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp
Modified: lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp?rev=242681&r1=242680&r2=242681&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp Mon Jul 20 11:14:46 2015
@@ -744,6 +744,9 @@ NativeProcessLinux::Monitor::MainLoop()
int r = select(max_fd, &fds, nullptr, nullptr, nullptr);
if (r < 0)
{
+ if (errno == EINTR)
+ continue;
+
Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS));
if (log)
log->Printf("NativeProcessLinux::Monitor::%s exiting because select failed: %s",
More information about the lldb-commits
mailing list