Skip to content

race condition when creating deeper subdirectories #3

Description

@j0ki

When creating a directory tree inside a watched directory it is possible that a deeper subdirectory ends up not being watched, because its parent did not get watched before it was created.
Example:

  1. Watch rootdir
  2. create rootdir/subdir
  3. create rootdir/subdir/subsubdir
  4. inotify event -> watch rootdir/subdir
  5. no event for creating subsubdir -> subsubdir is not watched

See https://mail.gnome.org/archives/dashboard-hackers/2004-October/msg00022.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions