minor rewordings.

This commit is contained in:
Michael Kerrisk 2008-02-26 12:44:38 +00:00
parent 7647b3a10b
commit f2e101d0ca
1 changed files with 6 additions and 3 deletions

View File

@ -82,6 +82,7 @@ file descriptor has been added to the
.B epoll .B epoll
interface using the interface using the
.B EPOLLET .B EPOLLET
(edge-triggered)
flag, the call to flag, the call to
.BR epoll_wait (2) .BR epoll_wait (2)
done in step done in step
@ -112,8 +113,7 @@ might block indefinitely.
An application that employs the An application that employs the
.B EPOLLET .B EPOLLET
flag (edge-triggered) flag should use non-blocking file descriptors to avoid having a blocking
should use non-blocking file descriptors to avoid having a blocking
read or write starve a task that is handling multiple file descriptors. read or write starve a task that is handling multiple file descriptors.
The suggested way to use The suggested way to use
.B epoll .B epoll
@ -134,7 +134,10 @@ return
.BR EAGAIN . .BR EAGAIN .
.RE .RE
.PP .PP
By contrast, when used as a level-triggered interface, By contrast, when used as a level-triggered interface
(the default, when
.B EPOLLET
is not specified),
.B epoll .B epoll
is simply a faster is simply a faster
.BR poll (2), .BR poll (2),