Buffer crash fix
This commit is contained in:
parent
c4e1851f42
commit
981304acaf
2 changed files with 7 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue