Clear read_fd_set if EINTR received
authorEmre Kultursay <emrekultursay@google.com>
Thu, 23 Feb 2023 11:55:25 +0000 (12:55 +0100)
committerPavel Labath <pavel@labath.sk>
Thu, 23 Feb 2023 12:27:19 +0000 (13:27 +0100)
commitd8bd179a173876a7a9ee11828b63efffe145356c
treec4bf63445730d87cfac0c2ff33846d1b4e5c61d5
parent52786141f9cff244ce26f81693d53a9c277c54f3
Clear read_fd_set if EINTR received

Leaving bits uncleared set causes callbacks to be triggered even
though there are no events to process. Starting with D131160
we have a callback that makes blocking read calls over pipe which
was causing the lldb-server main loop to become unresponsive / blocked
on Android.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D144240
lldb/source/Host/posix/MainLoopPosix.cpp