mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-16 00:21:46 +00:00
python: Clear SIGINT handler after Python loads
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user