Option to force PollingDirectoryWatcherStrategy

Add an option to force the use of PollingDirectoryWatcherStrategy
Should work on any platform
(Not Linux only)

See previous PR on this topic :
https://github.com/pocoproject/poco/pull/2881

On Linux, inotfy does not work for network volumes (such as NFS).

See https://stackoverflow.com/questions/4231243/inotify-with-nfs

By adding flag POCO_DW_FORCE_POLLING in Foundation/Config.h,
the use of PollingDirectoryWatcherStrategy is forced.

This is not the same behavior as flag POCO_NO_INOTIFY.
This only disables compilation of DirectoryWatcher.
This commit is contained in:
Ludovic LIEVRE 2020-01-15 21:38:51 +00:00
parent b651764007
commit 15e96159e2

View File

@ -104,7 +104,7 @@
// Define to disable compilation of DirectoryWatcher
// on platforms with no inotify.
//#define POCO_NO_INOTIFY
// #define POCO_NO_INOTIFY
// Define to force the use of PollingDirectoryWatcher
// #define POCO_DW_FORCE_POLLING