[Lldb-commits] [lldb] r132492 - /lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Caroline Tice ctice at apple.com
Thu Jun 2 15:09:43 PDT 2011


Author: ctice
Date: Thu Jun  2 17:09:43 2011
New Revision: 132492

URL: http://llvm.org/viewvc/llvm-project?rev=132492&view=rev
Log:

Use Py_InitializeEx(0) instead of Py_Initialize,
to prevent Python from installing its own signal 
handlers.


Modified:
    lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Modified: lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp?rev=132492&r1=132491&r2=132492&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp Thu Jun  2 17:09:43 2011
@@ -1540,7 +1540,7 @@
     }
 
     PyEval_InitThreads ();
-    Py_Initialize ();
+    Py_InitializeEx (0);
 
     PyObject *compiled_module = Py_CompileString (embedded_interpreter_string, 
                                                   "embedded_interpreter.py",





More information about the lldb-commits mailing list