platform: dropped unneeded reporting on exit by Windows file watcher
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Sun, 5 Apr 2015 18:02:44 +0000 (20:02 +0200)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Sun, 5 Apr 2015 18:02:44 +0000 (20:02 +0200)
bin/win/fsnotifier.exe
native/fileWatcher/fileWatcher3.cpp
native/fileWatcher/fileWatcher3.rc

index 7a6118aadcfdfba42e45580d36262d2922e481a8..21c8c95a3103ea3f58b0f77f007349f6de1b79cb 100644 (file)
Binary files a/bin/win/fsnotifier.exe and b/bin/win/fsnotifier.exe differ
index 07dbe52095a594b62f211a23e15fe619da91fc4e..229bb4017082ea9b384636e3d35877f1650d0f74 100644 (file)
@@ -383,7 +383,7 @@ void StopRoot(WatchRootInfo *info) {
     info->bInitialized = false;
 }
 
-void UpdateRoots() {
+void UpdateRoots(bool report) {
     char infoBuffer[256];
     strcpy_s(infoBuffer, "UNWATCHEABLE\n");
     for (int i = 0; i < ROOT_COUNT; i++) {
@@ -404,6 +404,11 @@ void UpdateRoots() {
             }
         }
     }
+
+    if (!report) {
+        return;
+    }
+
     EnterCriticalSection(&csOutput);
     fprintf(stdout, "%s", infoBuffer);
     puts("#\nREMAP");
@@ -488,14 +493,15 @@ int _tmain(int argc, _TCHAR *argv[]) {
             if (failed)
                 break;
 
-            UpdateRoots();
+            UpdateRoots(true);
         }
+
         if (!strcmp(buffer, "EXIT"))
             break;
     }
 
     MarkAllRootsUnused();
-    UpdateRoots();
+    UpdateRoots(false);
 
     DeleteCriticalSection(&csOutput);
 }
index 9006b5468442f30bc65c3ab05aa6ec6ed6a5fc5a..b61e28182834bbd6a93e01659b6777a7abbed482 100644 (file)
@@ -1,7 +1,7 @@
 #include <windows.h>
 
-#define FILE_VERSION      14,0,0,1
-#define FILE_VERSION_STR  "14.0.0.1"
+#define FILE_VERSION      14,0,0,2
+#define FILE_VERSION_STR  "14.0.0.2"
 #define APP_VERSION       14,0,0,0
 #define APP_VERSION_STR   "14"
 
@@ -24,7 +24,7 @@ BEGIN
             VALUE "FileDescription", "Filesystem events processor"
             VALUE "FileVersion", FILE_VERSION_STR
             VALUE "InternalName", "fsnotifier"
-            VALUE "LegalCopyright", "Copyright (C) 2008-2014 JetBrains s.r.o."
+            VALUE "LegalCopyright", "Copyright (C) 2008-2015 JetBrains s.r.o."
             VALUE "OriginalFilename", "fsnotifier.exe"
             VALUE "ProductName", "IntelliJ Platform"
             VALUE "ProductVersion", APP_VERSION_STR