llvm-project/llvm/lib/Support/Unix
Bill Wendling 4787efa380 Revert "Reapply: Add an error message to the default SIGPIPE handler"
This patch is spamming compiles with unhelpful and confusing messages.
E.g. the Linux kernel uses "grep -q" in several places. It's meant to
quit with a return code of zero when the first match is found. This can
cause a SIGPIPE signal, but that's expected, and there's no way to turn
this error message off to avoid spurious error messages.

UNIX03 apparently doesn't require printing an error message on SIGPIPE,
but specifically when there's an error on the stdout stream in a normal
program flow, e.g. when SIGPIPE trap is disabled.

A separate patch is planned to address the specific case we care most
about (involving llvm-nm).

This reverts commit b89bcefa62.

Link: https://github.com/llvm/llvm-project/issues/59037
Link: https://github.com/ClangBuiltLinux/linux/issues/1651

Differential Revision: https://reviews.llvm.org/D138244
2022-11-18 11:17:25 -08:00
..
COM.inc [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
DynamicLibrary.inc
Host.inc
Memory.inc Canonicalize PowerPC detection macros to __powerpc__ 2022-11-06 17:29:45 -08:00
Path.inc [Support] Use thread safe version of getpwuid and getpwnam. 2022-11-14 17:48:44 +00:00
Process.inc ManagedStatic: remove many straightforward uses in llvm 2022-07-10 10:29:15 +02:00
Program.inc
README.txt
Signals.inc Revert "Reapply: Add an error message to the default SIGPIPE handler" 2022-11-18 11:17:25 -08:00
ThreadLocal.inc [Support] Remove unused/uncompilable !HAVE_PTHREAD_GETSPECIFIC code path 2022-04-11 14:20:33 -07:00
Threading.inc Add ThreadPriority::Low, and use QoS class Utility on Mac 2022-05-16 10:01:49 +02:00
Unix.h
Watchdog.inc

README.txt

llvm/lib/Support/Unix README
===========================

This directory provides implementations of the lib/System classes that
are common to two or more variants of UNIX. For example, the directory
structure underneath this directory could look like this:

Unix           - only code that is truly generic to all UNIX platforms
  Posix        - code that is specific to Posix variants of UNIX
  SUS          - code that is specific to the Single Unix Specification
  SysV         - code that is specific to System V variants of UNIX

As a rule, only those directories actually needing to be created should be
created. Also, further subdirectories could be created to reflect versions of
the various standards. For example, under SUS there could be v1, v2, and v3
subdirectories to reflect the three major versions of SUS.