From a5ee1669b4d6e2abd0758fbb2382574cb7948751 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 19 Oct 2010 09:56:29 +0100 Subject: [PATCH] ENH: fileMonitor : continue if inotify_init failed --- src/OSspecific/POSIX/fileMonitor.C | 62 ++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 17 deletions(-) diff --git a/src/OSspecific/POSIX/fileMonitor.C b/src/OSspecific/POSIX/fileMonitor.C index 982d5e28dc..a6befd5908 100644 --- a/src/OSspecific/POSIX/fileMonitor.C +++ b/src/OSspecific/POSIX/fileMonitor.C @@ -39,7 +39,7 @@ Class #else # include # include - +# include # define EVENT_SIZE ( sizeof (struct inotify_event) ) # define EVENT_LEN (EVENT_SIZE + 16) # define EVENT_BUF_LEN ( 1024 * EVENT_LEN ) @@ -144,7 +144,7 @@ namespace Foam #else //- File descriptor for the inotify instance - int fd; + int inotifyFd_; //- Current watchIDs and corresponding directory id DynamicList