in reply to Re: Linux::Inotify2 remove single watch
in thread Linux::Inotify2 remove single watch

Many thanks! That worked. So if I want the loop forever (it is in a daemon), it would be :
$inotify->poll while 1
Right?

Replies are listed 'Best First'.
Re^3: Linux::Inotify2 remove single watch
by Anonymous Monk on Oct 25, 2018 at 01:22 UTC
    This is correct - the Linux::Inotify2 documentation was consistently wrong, read and poll both croak on errors. This has been fixed in release 2.0.