Branch: Tag:

2016-02-05

2016-02-05 15:01:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor [Inotify]: Don't reinstate deleted MF_AUTO.

In some circumstances an already removed MF_AUTO InotifyMonitor could be
reinstated when the monitor was switched to polling mode.

1064:    }    }    wd = -1; -  if (!dying) { +  if (!dying && !(flags & MF_AUTO)) {    // We now need to be polled...    MON_WERR("Registering for polling.\n");    monitor_queue->push(this);