From owner-freebsd-stable@FreeBSD.ORG Tue Aug 19 17:41:33 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80FEE16A4BF for ; Tue, 19 Aug 2003 17:41:33 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0958B43FDD for ; Tue, 19 Aug 2003 17:41:33 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas (adsl-64-165-200-173.dsl.snfc21.pacbell.net [64.165.200.173]) by mta7.pltn13.pbi.net (8.12.9/8.12.3) with ESMTP id h7K0fVeD006290; Tue, 19 Aug 2003 17:41:32 -0700 (PDT) Date: Tue, 19 Aug 2003 17:41:31 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@atlas.home To: Vlad Galu In-Reply-To: <20030819182012.3F2AD43FBF@mx1.FreeBSD.org> Message-ID: <20030819173659.U84037@atlas.home> References: <20030819182012.3F2AD43FBF@mx1.FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: kqueue freezing 5.1R on kevent call X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 00:41:33 -0000 On Tue, 19 Aug 2003, Vlad Galu wrote: > On Tue, 19 Aug 2003 11:08:46 -0700 (PDT) > "Krishna N. Ramachandran" wrote: > > > Hi, > > The sample program given below freezes my 5.1R installation. This > > program is from a bug report - kern/54331. That bug report > > (http://lists.freebsd.org/pipermail/freebsd-bugs/2003-July/001608.html) is > > for the shutdown function call, whereas my machine basically just freezes > > up and reboots on kevent itself. I am also noticing this problem with > > another program i wrote (but too long to include here). > > > > Here is my uname output > > FreeBSD marvin 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Fri Aug 1 16:14:43 > > GMT 2003 root@:/usr/obj/usr/src/sys/EC5 i386 > > > > thank you in advance, > > Krishna > > > The program exits cleanly on my -STABLE system. But just for my curiosity, why > didn't you call kevent() using "&events" instead of "events". The function > prototype says that this argument should be a pointer to a kevent structure, An array is a pointer. Sort-of... > right? Furthermore, you there have an array of 10 such structures. Why is that, > as long as you're only using the first one ? The same array is also used as an output argument -- in this case the call may return up to ten events. $.02, /Mikko