summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/api/multithreaded
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/api/multithreaded')
-rw-r--r--lldb/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template b/lldb/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template
index adb1d200655..f4bd021632c 100644
--- a/lldb/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template
+++ b/lldb/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template
@@ -6,6 +6,9 @@
#include <iterator>
#include <string>
#include <vector>
+#if !defined(_MSC_VER)
+ #include <signal.h>
+#endif
%include_SB_APIs%
@@ -17,6 +20,13 @@ using namespace lldb;
void test(SBDebugger &dbg, std::vector<string> args);
int main(int argc, char** argv) {
+
+// Ignore SIGPIPE. The lldb driver does this as well,
+// because we seem to get spurious SIGPIPES on some
+// Unixen that take the driver down.
+#if !defined(_MSC_VER)
+ signal(SIGPIPE, SIG_IGN);
+#endif
int code = 0;
SBDebugger::Initialize();
OpenPOWER on IntegriCloud