ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.195 by root, Mon Oct 20 17:50:48 2008 UTC vs.
Revision 1.197 by root, Tue Oct 21 20:52:30 2008 UTC

894=item C<EV_ERROR> 894=item C<EV_ERROR>
895 895
896An unspecified error has occurred, the watcher has been stopped. This might 896An unspecified error has occurred, the watcher has been stopped. This might
897happen because the watcher could not be properly started because libev 897happen because the watcher could not be properly started because libev
898ran out of memory, a file descriptor was found to be closed or any other 898ran out of memory, a file descriptor was found to be closed or any other
899problem. Libev considers these application bugs.
900
899problem. You best act on it by reporting the problem and somehow coping 901You best act on it by reporting the problem and somehow coping with the
900with the watcher being stopped. 902watcher being stopped. Note that well-written programs should not receive
903an error ever, so when your watcher receives it, this usually indicates a
904bug in your program.
901 905
902Libev will usually signal a few "dummy" events together with an error, for 906Libev will usually signal a few "dummy" events together with an error, for
903example it might indicate that a fd is readable or writable, and if your 907example it might indicate that a fd is readable or writable, and if your
904callbacks is well-written it can just attempt the operation and cope with 908callbacks is well-written it can just attempt the operation and cope with
905the error from read() or write(). This will not work in multi-threaded 909the error from read() or write(). This will not work in multi-threaded
1796to exchange stat structures with application programs compiled using the 1800to exchange stat structures with application programs compiled using the
1797default compilation environment. 1801default compilation environment.
1798 1802
1799=head3 Inotify and Kqueue 1803=head3 Inotify and Kqueue
1800 1804
1801When C<inotify (7)> support has been compiled into libev (generally only 1805When C<inotify (7)> support has been compiled into libev (generally
1806only available with Linux 2.6.25 or above due to bugs in earlier
1802available with Linux) and present at runtime, it will be used to speed up 1807implementations) and present at runtime, it will be used to speed up
1803change detection where possible. The inotify descriptor will be created lazily 1808change detection where possible. The inotify descriptor will be created
1804when the first C<ev_stat> watcher is being started. 1809lazily when the first C<ev_stat> watcher is being started.
1805 1810
1806Inotify presence does not change the semantics of C<ev_stat> watchers 1811Inotify presence does not change the semantics of C<ev_stat> watchers
1807except that changes might be detected earlier, and in some cases, to avoid 1812except that changes might be detected earlier, and in some cases, to avoid
1808making regular C<stat> calls. Even in the presence of inotify support 1813making regular C<stat> calls. Even in the presence of inotify support
1809there are many cases where libev has to resort to regular C<stat> polling, 1814there are many cases where libev has to resort to regular C<stat> polling,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines