On Thu, 28 Feb 2008, Michael Kerrisk wrote:Have you ever tried to think what it means for different *processes* sharing a single epoll fd and doing epoll_wait() over it? Most common case is a single event fetch thread plus dispatch. Going to epoll_wait() over a single epoll fd from many *threads* is very much possible, but requires care (news at 11, system software development requires care too). Sharing a single epoll fd (by the means of any process sharing it doing add/wait) from different *processes* makes almost no sense at all. "a child process cannot add the duplicate file descriptor to the epoll set" ... how do you expect the parent (that doesn't even have the new fd mapped) to react to such events? If the next question is "But then why we made the epoll fd inheritable?", the answer is, because it makes sense in many cases for a parent to hand over an fd set to a child. I think we already went over this, and I think I clearly explained you the reasons of not hooking into sys_close. - Davide --
| 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 |
