Skip to content

notify-debouncer-full panic on Linux with inotify #678

@kevinchevalier

Description

@kevinchevalier

If no paths are included on an Event, notify-debouncer-full panics due to this line. https://github.com/notify-rs/notify/blob/main/notify-debouncer-full/src/lib.rs#L274

It appear that INotifyWatcher on Linux sometimes includes events with no paths.

This is rare, but I'm seeing it happen in telemetry 50 times a day.

I could take a crack at addressing this issue, but I'm not sure whether the fix would be to:

  • Suppress all events from INotifyWatcher that do not include paths. OR
  • Make notify-debouncer-full handle events safely that don't include paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions