kqueue freezing 5.1R on kevent call

Mikko Työläjärvi mbsd at pacbell.net
Tue Aug 19 17:41:33 PDT 2003


On Tue, 19 Aug 2003, Vlad Galu wrote:

> On Tue, 19 Aug 2003 11:08:46 -0700 (PDT)
> "Krishna N. Ramachandran" <krishna at 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


More information about the freebsd-stable mailing list