Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263006AbUDARvJ (ORCPT ); Thu, 1 Apr 2004 12:51:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263010AbUDARvJ (ORCPT ); Thu, 1 Apr 2004 12:51:09 -0500 Received: from x35.xmailserver.org ([69.30.125.51]:60838 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id S263006AbUDARvG (ORCPT ); Thu, 1 Apr 2004 12:51:06 -0500 X-AuthUser: davidel@xmailserver.org Date: Thu, 1 Apr 2004 09:51:02 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@bigblue.dev.mdolabs.com To: Ben cc: Linux Kernel Mailing List Subject: Re: epoll reporting events when it hasn't been asked to In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 777 Lines: 21 On Thu, 1 Apr 2004, Ben wrote: > This is odd. The epoll_ctl() got rid of all events for FD 7, yet the > epoll_wait() following it returns event 16 (EPOLLHUP). Is this a bug? > I don't normally see this behaviour for most connections, is it perhaps > to do with the read returning ECONNRESET ? It is a feature. epoll OR user events with POLLHUP|POLLERR so that even if the user sets the event mask to zero, it can still know when something like those abnormal condition happened. Which problem do you see with this? - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/