mirror of https://github.com/mkerrisk/man-pages
Further reworking of Q5/A5.
This commit is contained in:
parent
d377b54d0a
commit
54d02f32e9
15
man7/epoll.7
15
man7/epoll.7
|
@ -172,8 +172,9 @@ In this example, listener is a
|
||||||
non-blocking socket on which
|
non-blocking socket on which
|
||||||
.BR listen (2)
|
.BR listen (2)
|
||||||
has been called.
|
has been called.
|
||||||
The function do_use_fd() uses the new ready
|
The function
|
||||||
file descriptor until
|
.I do_use_fd()
|
||||||
|
uses the new ready file descriptor until
|
||||||
.B EAGAIN
|
.B EAGAIN
|
||||||
is returned by either
|
is returned by either
|
||||||
.BR read (2)
|
.BR read (2)
|
||||||
|
@ -181,7 +182,8 @@ or
|
||||||
.BR write (2).
|
.BR write (2).
|
||||||
An event-driven state machine application should, after having received
|
An event-driven state machine application should, after having received
|
||||||
.BR EAGAIN ,
|
.BR EAGAIN ,
|
||||||
record its current state so that at the next call to do_use_fd()
|
record its current state so that at the next call to
|
||||||
|
.I do_use_fd()
|
||||||
it will continue to
|
it will continue to
|
||||||
.BR read (2)
|
.BR read (2)
|
||||||
or
|
or
|
||||||
|
@ -327,12 +329,15 @@ file descriptor inside another
|
||||||
file descriptor set.
|
file descriptor set.
|
||||||
.TP
|
.TP
|
||||||
.B Q5
|
.B Q5
|
||||||
Can I send the
|
Can I send an
|
||||||
.B epoll
|
.B epoll
|
||||||
file descriptor over a Unix domain socket to another process?
|
file descriptor over a Unix domain socket to another process?
|
||||||
.TP
|
.TP
|
||||||
.B A5
|
.B A5
|
||||||
No.
|
Yes, but it does not make sense to do this, since the receiving process
|
||||||
|
would not have copies of the file descriptors in the
|
||||||
|
.B epoll
|
||||||
|
set.
|
||||||
.TP
|
.TP
|
||||||
.B Q6
|
.B Q6
|
||||||
Will closing a file descriptor cause it to be removed from all
|
Will closing a file descriptor cause it to be removed from all
|
||||||
|
|
Loading…
Reference in New Issue