[all-commits] [llvm/llvm-project] a4d6de: [lldb] Fix TestProcessIOHandlerInterrupt.py for macos

Pavel Labath via All-commits all-commits at lists.llvm.org
Fri Mar 18 03:52:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4d6de2031ad2f92d399fc8d1b1301229ed8255b
      https://github.com/llvm/llvm-project/commit/a4d6de2031ad2f92d399fc8d1b1301229ed8255b
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    M lldb/test/API/iohandler/sigint/cat.cpp

  Log Message:
  -----------
  [lldb] Fix TestProcessIOHandlerInterrupt.py for macos

On darwin, we don't completely suppress the signal used to interrupt the
inferior. The underlying read syscall returns EINTR, which causes premature
termination of the input loop.

Work around that by hand-rolling an EINTR-resistant version of getline.




More information about the All-commits mailing list