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

QFileSystemWatcher.fileChanged not emitted just after addPath on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.7.0
    • None
    • VS2015 update 2 on Windows 8.1

    Description

      The attached program does the following:

      • create a file
      • watch it with QFileSystemWatcher
      • open it with flags out | trunc | binary
      • wait for the fileChanged event and exit

      The fileChanged event is not emitted sometimes. I run the program in a loop in git bash and after 1 to 10 runs, it deadlocks because the signal is not emitted.

      If we add a short sleep before opening the file after starting watching it, the program always succeeds.

      Attachments

        1. main.cpp
          0.8 kB
          Philippe
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            blastrock Philippe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes