On Wed, Feb 27, 2008 at 8:35 PM, Davide Libenzi <davidel@xmailserver.org> wrote:Okay -- removed. But it is an ugly inconsistency. On the one hand, a child process cannot add the duplicate file descriptor to the epoll set. (In every other case that I can think of , descriptors duplicated by fork have similar semantics to descriptors duplicated by dup() and friends.) On the other hand, the very fact that the child has a duplicate of the descriptor means that even if the parent closes its descriptor, then epoll_wait() in the parent will continue to receive notifications for that descriptor because of the duplicated descriptor in the child. The choice of [file *, fd] as the key for epoll sets really does seem unfortunate. Keying on [pid, fd] would have given saner semantics, it seems to me. Obviously it can't be changed now though. Cheers, Michael -- Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bug? Look here: http://www.kernel.org/doc/man-pages/reporting_bugs.html --
| Arnd Bergmann | SCHED_IDLE documentation |
| david | Re: limits on raid |
| Jan Engelhardt | Re: [PATCH] CodingStyle: multiple updates |
| Ingo Molnar | Re: Rescheduling interrupts |
git: | |
| Russ Brown | git-svn: Branching clarifications |
| Sam Song | Fwd: [OT] Re: Git via a proxy server? |
| Junio C Hamano | Re: More precise tag following |
| Pierre Habouzit | Re: People unaware of the importance of "git gc"? |
| Michael | Virtual interface |
| Stijn | Re: libiconv problem |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Amaury De Ganseman | "ping: sendto: No buffer space available" when using bittorrent or another p2p |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Darren Senn | Re: Elm |
| Seung-Chul Woo | Is it possible to mount GNU HURD file system as DOS in SLS? |
| David Willmore | Re: Intel, the Pentium and Linux |
