From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 7 20:58:08 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 4D3D6106566B for ; Fri, 7 Mar 2008 20:58:08 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outZ.internet-mail-service.net (outZ.internet-mail-service.net [216.240.47.249]) by mx1.freebsd.org (Postfix) with ESMTP id 285FE8FC15 for ; Fri, 7 Mar 2008 20:58:08 +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 12:58:32 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 49C752D6006; Fri, 7 Mar 2008 12:58:06 -0800 (PST) Message-ID: <47D1AC63.3040701@elischer.org> Date: Fri, 07 Mar 2008 12:58:11 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Vlad GALU References: 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 20:58:08 -0000 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 Interstingly I may have seen a similar thing myself, but fixed it elsewhere. the question is a valid one..