From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 7 21:24:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56F811065671 for ; Fri, 7 Mar 2008 21:24:02 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outE.internet-mail-service.net (outE.internet-mail-service.net [216.240.47.228]) by mx1.freebsd.org (Postfix) with ESMTP id 3103C8FC1D for ; Fri, 7 Mar 2008 21:24:02 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Fri, 07 Mar 2008 13:24:50 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 03C592D6013; Fri, 7 Mar 2008 13:23:58 -0800 (PST) Message-ID: <47D1B274.6000907@elischer.org> Date: Fri, 07 Mar 2008 13:24:04 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Vlad GALU References: <47D1AC63.3040701@elischer.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: A (perhaps silly) kqueue question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 21:24:02 -0000 Vlad GALU wrote: > On 3/7/08, Julian Elischer wrote: >> Vlad GALU wrote: >> > I see an unusual symptom with one of our in-house applications. The >> > main I/O loop calls kevent(), which in turn returns two events with >> > EV_EOF error set, always for the same descriptors (they're both socket >> > descriptors). As the man page is not pretty clear about it and I don't >> > have my UNP copy at hand, I would like to ask the list whether the >> > error events are supposed to be one-shot or not. >> > Thanks for your kind input. >> > >> >> >> You don't specify which version you are running > > Ah, yes, sorry. Fresh RELENG_7. > >> Interstingly I may have seen a similar thing myself, >> but fixed it elsewhere. >> >> the question is a valid one.. >> >> >> > > Is this reproducable? Can you make this happen at will?