mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	- libs/ezsat/ezminisat.cc: use sigemptyset() to clear sig_action.sa_mask; use SA_RESTART flag for improved robustness of code that is not signal-aware.
This commit is contained in:
		
							parent
							
								
									113f129b34
								
							
						
					
					
						commit
						d091be4011
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -176,8 +176,8 @@ contradiction: | |||
| 
 | ||||
| 	if (solverTimeout > 0) { | ||||
| 		sig_action.sa_handler = alarmHandler; | ||||
| 		sig_action.sa_mask = 0; | ||||
| 		sig_action.sa_flags = 0; | ||||
| 		sigemptyset(&sig_action.sa_mask); | ||||
| 		sig_action.sa_flags = SA_RESTART; | ||||
| 		alarmHandlerThis = this; | ||||
| 		alarmHandlerTimeout = clock() + solverTimeout*CLOCKS_PER_SEC; | ||||
| 		old_alarm_timeout = alarm(0); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue