Change the default handling for SIGPIPE to pass/,no-stop/no-notify.
authorJim Ingham <jingham@apple.com>
Fri, 12 Oct 2018 21:27:49 +0000 (21:27 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 12 Oct 2018 21:27:49 +0000 (21:27 +0000)
Most of the time SIGPIPE is just annoying, and so we should
pass it on silently it by default.

<rdar://problem/39359145>

llvm-svn: 344418

lldb/source/Target/UnixSignals.cpp

index 9cfb1b7..7cd847a 100644 (file)
@@ -88,7 +88,7 @@ void UnixSignals::Reset() {
   AddSignal(10, "SIGBUS", false, true, true, "bus error");
   AddSignal(11, "SIGSEGV", false, true, true, "segmentation violation");
   AddSignal(12, "SIGSYS", false, true, true, "bad argument to system call");
-  AddSignal(13, "SIGPIPE", false, true, true,
+  AddSignal(13, "SIGPIPE", false, false, false,
             "write on a pipe with no one to read it");
   AddSignal(14, "SIGALRM", false, false, false, "alarm clock");
   AddSignal(15, "SIGTERM", false, true, true,