From 71217f48ea498d7292ca3bf17b8bffe1ab97e642 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Nov 2007 11:27:29 +0000 Subject: *** empty log message *** --- ev.pod | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'ev.pod') diff --git a/ev.pod b/ev.pod index 241fade..8b57eb4 100644 --- a/ev.pod +++ b/ev.pod @@ -1224,7 +1224,7 @@ otherwise always forced to be at least one) and all the other fields of the stat buffer having unspecified contents. Since there is no standard to do this, the portable implementation simply -calls C regulalry on the path to see if it changed somehow. You +calls C regularly on the path to see if it changed somehow. You can specify a recommended polling interval for this case. If you specify a polling interval of C<0> (highly recommended!) then a I value will be used (which you can expect to be around @@ -1236,8 +1236,13 @@ This watcher type is not meant for massive numbers of stat watchers, as even with OS-supported change notifications, this can be resource-intensive. -At the time of this writing, no specific OS backends are implemented, but -if demand increases, at least a kqueue and inotify backend will be added. +At the time of this writing, only the Linux inotify interface is +implemented (implementing kqueue support is left as an exercise for the +reader). Inotify will be used to give hints only and should not change the +semantics of C watchers, which means that libev sometimes needs +to fall back to regular polling again even with inotify, but changes are +usually detected immediately, and if the file exists there will be no +polling. =over 4 -- cgit v1.2.3