Buffer crash fix

This commit is contained in:
Thulinma 2010-11-08 03:12:24 +01:00
parent c4e1851f42
commit 981304acaf
2 changed files with 7 additions and 1 deletions

View file

@ -60,7 +60,7 @@ int main( int argc, char * argv[] ) {
int infile = fileno(stdin);
int poller = epoll_create(1);
struct epoll_event ev;
ev.events = EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP;
ev.events = EPOLLIN;
ev.data.fd = infile;
epoll_ctl(poller, EPOLL_CTL_ADD, infile, &ev);
struct epoll_event events[1];