cvs commit: src/sys/kern kern_event.c

Alfred Perlstein alfred at freebsd.org
Tue Jun 7 13:51:46 GMT 2005


* John-Mark Gurney <jmg at 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 at mu.org cell: 408-480-4684


More information about the cvs-all mailing list