[Qt-creator] [OS X]: QFileSystemWatcher "using only polling engine"
Ziller Eike
Eike.Ziller at theqtcompany.com
Thu Sep 24 13:46:19 CEST 2015
> On Sep 24, 2015, at 12:50 PM, René J. V. Bertin <rjvbertin at gmail.com> wrote:
>
> Ziller Eike wrote:
>
>>> QFileSystemWatcher: skipping native engine, using only polling engine
>>
>> This warning probably appears because the above file path (to the diff) is (in
>> a directory that somewhere is) a symbolic link, and is harmless if that is the
>> case.
>
> Now verified: the warning indeed doesn't occur for files that are not symlinked
> one way or another.
> As to harmless: I presume that there is a CPU overhead penalty to this fallback?
> So what happens if a whole set of *directories* are added that are all under a
> common parent directory that has a symlink somewhere in its path, as can happen
> when opening a project? Is falling back to the polling engine still better than
> using, say, the kqueue engine (presuming 1) that one isn't always better and 2)
> it will accept paths with a symlink in them)?
>
> Alternatively, why not simply resolve the symlink and use the normalised path
> with the native engine?
We do resolve the symlink and watch that,
but we need to track changes to the symlink itself as well.
--
Eike Ziller, Senior Software Engineer - The Qt Company GmbH
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list