python: Clear SIGINT handler after Python loads

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-14 10:08:54 +02:00
parent c94b8c4861
commit b1cbae1293

View File

@ -24,6 +24,7 @@
#include "nextpnr.h"
#include <fstream>
#include <signal.h>
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
}