check the new events before calling epoll_ctl.
Merge pull request #24 from fanyunfeng/master

Shortcut unnecessary epoll_ctl calls. Save the events in priv_fd->events then check the value before reset the events of fd.