… | |
… | |
214 | |
214 | |
215 | exists $self->{ignore}{$_->{wd}} |
215 | exists $self->{ignore}{$_->{wd}} |
216 | and next; # watcher has been canceled |
216 | and next; # watcher has been canceled |
217 | |
217 | |
218 | $w->{cb}->(bless $_, Linux::Inotify2::Event); |
218 | $w->{cb}->(bless $_, Linux::Inotify2::Event); |
|
|
219 | # TODO: what about IN_ONESHOT? |
219 | $w->cancel if $_->{mask} & (IN_IGNORED | IN_UNMOUNT); |
220 | $w->cancel if $_->{mask} & (IN_IGNORED | IN_UNMOUNT); |
220 | } |
221 | } |
221 | |
222 | |
222 | delete $self->{ignore}; |
223 | delete $self->{ignore}; |
223 | |
224 | |