| 300 | // TODO: refactor in common/console |
| 301 | #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) |
| 302 | struct sigaction sigint_action; |
| 303 | sigint_action.sa_handler = signal_handler; |
| 304 | sigemptyset (&sigint_action.sa_mask); |
| 305 | sigint_action.sa_flags = 0; |