7 void sighandler(int signum, short event, void* data)
9 unsigned &i = *(unsigned*)data;
10 std::cout << ++i << " interrupts, ";
11 if (i < 5) std::cout << "keep going...\n";
14 std::cout << "done!\n";
22 eventxx::csignal sigev(SIGINT, sighandler, &var);