Gregory Weston <uce@[EMAIL PROTECTED]
> wrote:
> In article <m27iscyqon.fsf@[EMAIL PROTECTED]
>,
> Sherm Pendley <spamtrap@[EMAIL PROTECTED]
> wrote:
>
>> SM Ryan <wyrmwif@[EMAIL PROTECTED]
> writes:
>>
>> > I have a program that gets in an uninterruptible wait for
>> > hours and days. I'm using sockets and kqueue. I have never
>> > had problems with sockets before, but kqueue used to crash
>> > the kernel. Does anyone know if kqueue still borks the machine?
>>
>> Never heard about it cra****ng the kernel before, but kqueue received a
>> substantial overhaul in Tiger. Spotlight uses it to index updated
files,
>> Finder to update its display immediately, etc.
>
> I know about Finder, but do you have any reference for Spotlight using
> kqueue? That seems really wrong and/or fragile.
It is wrong. Spotlight uses fsevent, a private API which is presumably
related to kqueue in some fa****on. Kqueue simply wouldn't work for
spotlight since it doesn't allow monitoring entire trees of a filesystem
without opening a file descriptor on every directory within, which is
impractical when doing the entire hard drive.
For more details on what Spotlight is doing, see this page:
http://www.kernelthread.com/software/fslogger/
--
Michael Ash
Rogue Amoeba Software


|