Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jun 2005 06:51:46 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        John-Mark Gurney <jmg@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_event.c
Message-ID:  <20050607135146.GI17867@elvis.mu.org>
In-Reply-To: <200506070635.j576ZAgo066489@repoman.freebsd.org>
References:  <200506070635.j576ZAgo066489@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* John-Mark Gurney <jmg@FreeBSD.org> [050606 23:35] wrote:
> jmg         2005-06-07 06:35:10 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:        (Branch: RELENG_5)
>     sys/kern             kern_event.c 
>   Log:
>   MFC:    v1.91
>     make stat return an zero'd struct, and be a FIFO again...  This is only
>     to fix libc_r since it requires stat to close fd's, and so commented in
>     the code...

I'd like to request that you restore the st_size return value.

Or maybe explain that the number of events can be queried via some
alternate means.  The kqueue manpage does not seem to explicitly
state how to just poll the number of pending events.

There are plenty of userland/kernel races and it's ok to have them.

Maybe just fix the manpage?  But removing the functionality behind
stat will surely break apps that depended on it.

-- 
- Alfred Perlstein
- email: bright@mu.org cell: 408-480-4684



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050607135146.GI17867>