Branch: Tag:

2017-07-19

2017-07-19 10:28:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor [Inotify]: Fixed infinite loop.

Creating new monitors for deleted files or directories is not a good idea...

Fixes testsuite failures on Linux.

980:    // We're interested in the sub monitor, if it exists.    if (Monitor submon = monitors[full_path]) {    m = submon; -  } else if (m->flags & MF_RECURSE) { +  } else if ((m->flags & MF_RECURSE) && !(event & System.Inotify.IN_DELETE)) {    // We've missed creation of the submonitor.    //    // This can happen in the