From 85aa1527330f4829c32e5d83fd252c0cb54c46c2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 23 Apr 2003 21:31:41 +0000 Subject: [PATCH] Restore signal handlers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/helpers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 580f7c235c..8425ec2682 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -386,6 +386,10 @@ void __wxPreStart(PyObject* moduleDict) wxPyTMutex = new wxMutex; #endif + // Restore default signal handlers, (prevents crash upon Ctrl-C in the + // console that launched a wxPython app...) + PyOS_FiniInterrupts(); + wxApp::CheckBuildOptions(wxBuildOptions()); wxPyAssertionError = PyErr_NewException("wxPython.wxc.wxPyAssertionError",