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

Emre Kultursay via All-commits all-commits at lists.llvm.org
Thu Feb 23 04:27:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d8bd179a173876a7a9ee11828b63efffe145356c
      https://github.com/llvm/llvm-project/commit/d8bd179a173876a7a9ee11828b63efffe145356c
  Author: Emre Kultursay <emrekultursay at google.com>
  Date:   2023-02-23 (Thu, 23 Feb 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