Branch: Tag:

2015-10-05

2015-10-05 13:51:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor [Inotify]: Improved robustness.

rm_watch() often complains about unknown descriptors, even though
they seem to be correct (Linux 3.17.2). Add a work-around.

952:    // and we've been called via a destroy().    if (instance) {    MON_WERR("### Unregistering from inotify.\n"); +  catch { +  // FIXME: For some reason Inotify often complains +  // when we call rm_watch() with what appears +  // to be correct descriptors (Linux 3.17.2).    instance->rm_watch(wd); -  +  };    }    wd = -1;    if (!dying) {