commit | author | age | ||
16b655 | 1 | #include "strat.hpp" |
0b7aa0 | 2 | #include <csignal> |
JG | 3 | #include <cstdlib> |
4 | #include <iostream> | |
16b655 | 5 | |
0b7aa0 | 6 | void signalHandler(int signum) |
JG | 7 | { |
8 | strat::destroy(); | |
9 | std::exit(0); | |
10 | } | |
11 | ||
12 | void no(int signum) | |
13 | { | |
14 | std::cout << "no." << std::endl; | |
15 | } | |
16 | ||
17 | int main(void) | |
18 | { | |
19 | signal(SIGINT, signalHandler); | |
20 | // signal(SIGTERM, no); | |
21 | strat::initialise(); | |
22 | strat::mainLoop(); | |
23 | } |