[all-commits] [llvm/llvm-project] 9d63b9: [lldb] [Host/ConnectionFileDescriptor] Do not use ...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Oct 25 07:24:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d63b90b59a6283531199e29038954db9ae23d74
      https://github.com/llvm/llvm-project/commit/9d63b90b59a6283531199e29038954db9ae23d74
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

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

  Log Message:
  -----------
  [lldb] [Host/ConnectionFileDescriptor] Do not use non-blocking mode

Disable non-blocking mode that's enabled only for file:// and serial://
protocols.  All read operations should be going through the select(2)
in ConnectionFileDescriptor::BytesAvaliable, which effectively erases
(non-)blocking mode differences in reading.  We do want to perform
writes in the blocking mode.

Differential Revision: https://reviews.llvm.org/D112442




More information about the All-commits mailing list