mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	pyosys: Clear SIGINT handler after Python loads
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
		
							parent
							
								
									c6681508f1
								
							
						
					
					
						commit
						1d88bea18b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -71,6 +71,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <limits.h> | #include <limits.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
|  | #include <signal.h> | ||||||
| 
 | 
 | ||||||
| YOSYS_NAMESPACE_BEGIN | YOSYS_NAMESPACE_BEGIN | ||||||
| 
 | 
 | ||||||
|  | @ -540,6 +541,7 @@ void yosys_setup() | ||||||
| 		PyImport_AppendInittab((char*)"libyosys", INIT_MODULE); | 		PyImport_AppendInittab((char*)"libyosys", INIT_MODULE); | ||||||
| 		Py_Initialize(); | 		Py_Initialize(); | ||||||
| 		PyRun_SimpleString("import sys"); | 		PyRun_SimpleString("import sys"); | ||||||
|  | 		signal(SIGINT, SIG_DFL); | ||||||
| 	#endif | 	#endif | ||||||
| 
 | 
 | ||||||
| 	Pass::init_register(); | 	Pass::init_register(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue