From 9422fd0c14bff4d2e250e0ff3544b6aa081ce67a Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 18 Feb 2014 20:00:20 +0000 Subject: Make sure we don't try to print the SystemExit exception, or we will cause the containing process to exit() from under us llvm-svn: 201600 --- lldb/scripts/Python/python-wrapper.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/scripts/Python/python-wrapper.swig') diff --git a/lldb/scripts/Python/python-wrapper.swig b/lldb/scripts/Python/python-wrapper.swig index 75b082f..646323a 100644 --- a/lldb/scripts/Python/python-wrapper.swig +++ b/lldb/scripts/Python/python-wrapper.swig @@ -16,7 +16,7 @@ public: { if (PyErr_Occurred()) { - if(m_print) + if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit)) PyErr_Print(); PyErr_Clear(); } -- cgit v1.1