From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk" Subject: Re: epoll(7) redux Date: Wed, 9 Apr 2008 13:15:15 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sam Varshavchik , Davide Libenzi Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org On Wed, Apr 9, 2008 at 1:07 PM, Sam Varshavchik wrote: > Q2 > > Can two epoll sets wait for the same file descriptor? If so, are events > reported to both epoll file descriptors? > > A2 > > Yes, and events would be reported to both. However, it is not recommended. > > ========= > > It's not clear what "not recommended" means. Furthermore, I don't think > there's anything wrong with two epoll file descriptors waiting for different > events on the same file descriptor. One's waiting for POLLIN, the other for > POLLOUT. What's wrong with that? Perhaps Davide has some thought to offer here? -- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html