Date: Tue, 19 Aug 2003 17:41:31 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mbsd@pacbell.net> To: Vlad Galu <Vlad.Galu@rdsnet.ro> Cc: freebsd-stable@freebsd.org Subject: Re: kqueue freezing 5.1R on kevent call Message-ID: <20030819173659.U84037@atlas.home> In-Reply-To: <20030819182012.3F2AD43FBF@mx1.FreeBSD.org> References: <Pine.GSO.4.21.0308191059430.6727-100000@ella> <20030819182012.3F2AD43FBF@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Aug 2003, Vlad Galu wrote: > On Tue, 19 Aug 2003 11:08:46 -0700 (PDT) > "Krishna N. Ramachandran" <krishna@cs.ucsb.edu> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030819173659.U84037>