/** * initTimerFD - タイマFD初期化処理 */ int initTimerFD (void) { struct itimerspec interval = {{1,0},{1,0}}; int timerFD = timerfd_create (CLOCK_REALTIME, 0); timerfd_settime (timerFD, 0, &interval, NULL); return timerFD; } /** * EpollLoop - イベント待ちおよびイベント発生時の処理起動 */ void EpollLoop (void) { while (!done) { struct epoll_event event = {0}; int evnum = epoll_wait (epollFD, &event, 1, -1); for (int i=0; i<ev