[all-commits] [llvm/llvm-project] b89bce: Reapply: Add an error message to the default SIGPI...
Tim Northover via All-commits
all-commits at lists.llvm.org
Thu Jun 9 12:13:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b89bcefa6202e310eb3167dd1c37f1807377ec8d
https://github.com/llvm/llvm-project/commit/b89bcefa6202e310eb3167dd1c37f1807377ec8d
Author: Tim Northover <t.p.northover at gmail.com>
Date: 2022-06-09 (Thu, 09 Jun 2022)
Changed paths:
M llvm/lib/Support/Unix/Signals.inc
A llvm/test/Support/unix03-sigpipe-exit.test
Log Message:
-----------
Reapply: 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.
First reapply attempt I hadn't noticed the test had changed, hopefully this
goes better.
More information about the All-commits
mailing list