Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24862

Linux: QFileSystemWatcher needs to gracefully deal with inotify errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 4.8.0, 5.0.0
    • None
    • Linux

    Description

      inotify has a watch limit per watch descriptor. We should deal with the case where adding a watch runs out of watch descriptors by creating a new engine (i.e. using a list of d->native instead of just a single engine).

      We'd need to change addPaths engine implementation to list error codes like "try another native engine", "fall back to software polling", along with real errors, and have QFileSystemWatcher decide what to do with those errors (create a new native instance, send them to the poller, error back up to the user).

      Attachments

        Activity

          People

            w00t Robin Burchell
            w00t Robin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: