From b1cbae1293fecf3ba14a7ce073d26dcfb07177f0 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 14 Jun 2018 10:08:54 +0200 Subject: [PATCH] python: Clear SIGINT handler after Python loads Signed-off-by: David Shah --- common/pybindings.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/pybindings.cc b/common/pybindings.cc index 761d6571..10bbab7b 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -24,6 +24,7 @@ #include "nextpnr.h" #include +#include NEXTPNR_NAMESPACE_BEGIN @@ -157,6 +158,7 @@ void init_python(const char *executable) std::string perror_str = parse_python_exception(); std::cout << "Error in Python: " << perror_str << std::endl; } + signal(SIGINT, SIG_DFL); #endif }