diff options
author | Tim Northover <t.p.northover@gmail.com> | 2022-06-09 19:52:29 +0100 |
---|---|---|
committer | Tim Northover <t.p.northover@gmail.com> | 2022-06-09 20:13:45 +0100 |
commit | b89bcefa6202e310eb3167dd1c37f1807377ec8d (patch) | |
tree | 3076255d49c5b392f93f467004d8be9933218500 /llvm/lib/Object/COFFObjectFile.cpp | |
parent | 51d84737b5a953da4f324ca9059a4ee392e2e139 (diff) | |
download | llvm-b89bcefa6202e310eb3167dd1c37f1807377ec8d.zip llvm-b89bcefa6202e310eb3167dd1c37f1807377ec8d.tar.gz llvm-b89bcefa6202e310eb3167dd1c37f1807377ec8d.tar.bz2 |
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.
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions