[all-commits] [llvm/llvm-project] 3cc0a5: Clear read_fd_set if EINTR received

Emre Kultursay via All-commits all-commits at lists.llvm.org
Mon May 1 21:24:58 PDT 2023

  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cc0a562969b1183836ef17cce913644db76de9b
  Author: Emre Kultursay <emrekultursay at google.com>
  Date:   2023-05-01 (Mon, 01 May 2023)

  Changed paths:
    M lldb/source/Host/posix/MainLoopPosix.cpp

  Log Message:
  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

More information about the All-commits mailing list