epoll.7: tfix

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
This commit is contained in:
Michael Kerrisk 2009-01-23 23:51:53 +01:00
parent d664f7cecf
commit a8d9df276b
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ if (epollfd == \-1) {
exit(EXIT_FAILURE);
}
ev.events = EPOLL_IN;
ev.events = EPOLLIN;
ev.data.fd = listen_sock;
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, listen_sock, &ev) == \-1) {
perror("epoll_ctl: listen_sock");