[all-commits] [llvm/llvm-project] e845f8: Add an error message to the default SIGPIPE handler

Tim Northover via All-commits all-commits at lists.llvm.org
Thu May 12 00:00:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e845f899e6079c51770162b8995a685287d315a5
      https://github.com/llvm/llvm-project/commit/e845f899e6079c51770162b8995a685287d315a5
  Author: Tim Northover <t.p.northover at gmail.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M llvm/lib/Support/Unix/Signals.inc
    A llvm/test/tools/llvm-nm/unix03-sigpipe-exit.test

  Log Message:
  -----------
  Add an error message to the default SIGPIPE handler

UNIX03 conformance requires utilities to flush stdout before exiting and raise
an error if writing fails. Flushing already happens on a call to exit
and thus automatically on a return from main. Write failure is then
detected by LLVM's default SIGPIPE handler. The handler already exits with
a non-zero code, but conformance additionally requires an error message.




More information about the All-commits mailing list