mirror of https://github.com/YosysHQ/yosys.git
- 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
|
@ -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…
Reference in New Issue