Skip to content

Race condition in PollingDirectoryWatcher #1718

Closed
@grouma

Description

@grouma

I believe there is a race condition here:
https://github.com/dart-lang/watcher/blob/master/lib/src/directory_watcher/polling.dart#L136

Between polling for the list of files to watch and running getModificationTime, the underlying file could have been deleted or moved. This will result in an unhandled failure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @grouma@mosuem

      Issue actions

        Race condition in PollingDirectoryWatcher · Issue #1718 · dart-lang/tools