aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorTim Northover <t.p.northover@gmail.com>2022-06-09 19:52:29 +0100
committerTim Northover <t.p.northover@gmail.com>2022-06-09 20:13:45 +0100
commitb89bcefa6202e310eb3167dd1c37f1807377ec8d (patch)
tree3076255d49c5b392f93f467004d8be9933218500 /llvm/lib/Object/COFFObjectFile.cpp
parent51d84737b5a953da4f324ca9059a4ee392e2e139 (diff)
downloadllvm-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