Clarify error that occurs if we add an epoll fd to its own set.

This commit is contained in:
Michael Kerrisk 2008-02-26 12:34:29 +00:00
parent a4a120c768
commit 4fecd70377
1 changed files with 4 additions and 1 deletions

View File

@ -266,7 +266,10 @@ What happens if the
file descriptor is put into its own file descriptor set? file descriptor is put into its own file descriptor set?
.TP .TP
.B A4 .B A4
It will fail. The
.BR epoll_ctl (2)
call will fail
.RB ( EINVAL ).
However, you can add an However, you can add an
.B epoll .B epoll
file descriptor inside another epoll file descriptor set. file descriptor inside another epoll file descriptor set.