File::ChangeNotify::Watcher::KQueue.3pm

Langue: en

Autres versions - même langue

Version: 2010-03-28 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

File::ChangeNotify::Watcher::KQueue - KQueue-based watcher for BSD systems.

DESCRIPTION

This class implements watching using KQueue. This is a BSD alternative to Linux's Inotify and similar event-based systems.

CAVEATS

Although this watcher is more efficient and accurate than the "File::ChangeNotify::Watcher::Default" class, in order to monitor files and directories, it must open filehandles to each of them. Because many BSD systems have relatively low defaults for the maximum number of files each process can open, you may find you run out of file descriptors.

On FreeBSD, you can check (and alter) your system's settings with "sysctl" if necessary. The important keys are: "kern.maxfiles" and "kern.maxfilesperproc". You can see how many files your system current has open with "kern.openfiles".

AUTHOR

Dan Thomas, <dan@cpan.org>

SUPPORT

I (Dave Rolsky) cannot test this class, as I have no BSD systems. Reasonable patches will be applied as-is, and when possible I will consult with Dan Thomas or other BSD users before releasing.

LICENSE

Copyright 2009 Dan Thomas, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.