| 268 | // TODO: refactor in common/console |
| 269 | #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) |
| 270 | struct sigaction sigint_action; |
| 271 | sigint_action.sa_handler = signal_handler; |
| 272 | sigemptyset (&sigint_action.sa_mask); |
| 273 | sigint_action.sa_flags = 0; |