python: Clear SIGINT handler after Python loads
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
c94b8c4861
commit
b1cbae1293
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user