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

QFileSystemWatcher: DNotify engine leaks file descriptors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.x
    • None
    • kubuntu 12.10, kde master, qt master

      The attached program, wenn using the DNotifyEngine, opens two file descriptors when I want to watch /home/wr/tmp: One for /home/wr/tmp and one for /home/wr. RemovePaths however only closes /home/wr/tmp, leaking the file descriptor for /home/wr. directory.parentFd is not closed.

      I am also attaching a possible fix (works here)

        1. main.cpp
          0.3 kB
          Wolfgang Rohdewald
        2. parent.patch
          0.6 kB
          Wolfgang Rohdewald
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            wrohdewald Wolfgang Rohdewald
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes