Priority: P4: Low
Affects Version/s: 5.7.0
Fix Version/s: None
Component/s: Core: Filesystem watching
Environment:VS2015 update 2 on Windows 8.1
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.