[Kst] [Bug 293822] kst doesn't monitor dirfiles for metadata changes
D. V. Wiebe
dvw at ketiltrout.net
Thu Jul 5 22:00:49 UTC 2012
https://bugs.kde.org/show_bug.cgi?id=293822
--- Comment #1 from D. V. Wiebe <dvw at ketiltrout.net> ---
Not that I'm necessarily advocating it's use, but GetData-0.8 now provides
Dirfile::DeSync() (= gd_desync()) which performs such monitoring and can,
optionally automatically reload the dirfile if changes are detected.
The down side of this function is that it uses the mtime returned from stat(2)
to determine if a file has changed. This makes it both portable on anything
providing something resembling a sysV stat(), including Win32, and also not
dependent on external dependencies, but does limit the granularity of changes
to one second, which can result in this function being unable to detect changes
to a dirfile in certain exceptional circumstances (see gd_desync(3) for a
discussion). Using FAM/inotify/whatever would be a better but non-portable
solution.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kst
mailing list