From 15e96159e29be71ce8fed23f9b67172bfb302cf9 Mon Sep 17 00:00:00 2001 From: Ludovic LIEVRE Date: Wed, 15 Jan 2020 21:38:51 +0000 Subject: [PATCH] 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. --- Foundation/include/Poco/Config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/include/Poco/Config.h b/Foundation/include/Poco/Config.h index ce57cb3f5..7a21b7033 100644 --- a/Foundation/include/Poco/Config.h +++ b/Foundation/include/Poco/Config.h @@ -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