Commit bd00d32a authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

BUG: install default sigint handler after Py_Initialize

parent 932d9c5a
......@@ -40,6 +40,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// self include
#include "pqPythonEventSource.h"
// system includes
#include <signal.h>
// Qt include
#include <QVariant>
#include <QFile>
......@@ -346,6 +349,9 @@ pqPythonEventSource::pqPythonEventSource(QObject* p)
this->Internal = new pqInternal;
// initialize python
Py_Initialize();
#ifdef SIGINT
signal(SIGINT, SIG_DFL);
#endif
PyEval_InitThreads();
// add QtTesting to python's inittab, so it is
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment