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. ...@@ -40,6 +40,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// self include // self include
#include "pqPythonEventSource.h" #include "pqPythonEventSource.h"
// system includes
#include <signal.h>
// Qt include // Qt include
#include <QVariant> #include <QVariant>
#include <QFile> #include <QFile>
...@@ -346,6 +349,9 @@ pqPythonEventSource::pqPythonEventSource(QObject* p) ...@@ -346,6 +349,9 @@ pqPythonEventSource::pqPythonEventSource(QObject* p)
this->Internal = new pqInternal; this->Internal = new pqInternal;
// initialize python // initialize python
Py_Initialize(); Py_Initialize();
#ifdef SIGINT
signal(SIGINT, SIG_DFL);
#endif
PyEval_InitThreads(); PyEval_InitThreads();
// add QtTesting to python's inittab, so it is // add QtTesting to python's inittab, so it is
......
Supports Markdown
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