]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 9 Nov 2020 20:29:03 +0000 (12:29 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 9 Nov 2020 20:29:03 +0000 (12:29 -0800)
open-vm-tools/services/vmtoolsd/mainLoop.c

index e05f82ffea568796c3673aa8338648295677b295..79533d77b5005ff6940ebcc5b94dfd7f02b89a4e 100644 (file)
@@ -48,6 +48,7 @@
 #  include "codeset.h"
 #  include "guestStoreClient.h"
 #  include "globalConfig.h"
+#  include "toolsNotify.h"
 #  include "windowsu.h"
 #else
 #  include "posix.h"
@@ -115,6 +116,9 @@ ToolsCoreCleanup(ToolsServiceState *state)
    if (state->mainService && GuestStoreClient_DeInit()) {
       g_info("%s: De-initialized GuestStore client.\n", __FUNCTION__);
    }
+   if (state->mainService && ToolsNotify_End()) {
+      g_info("%s: End Tools notifications.\n", __FUNCTION__);
+   }
 #endif
 
    if (state->ctx.rpc != NULL) {
@@ -494,6 +498,12 @@ ToolsCoreRunLoop(ToolsServiceState *state)
             g_info("%s: Successfully started tools hang detector",
                    __FUNCTION__);
          }
+#if defined(_WIN32)
+         if (ToolsNotify_Start(&state->ctx)) {
+            g_info("%s: Successfully started tools notifications",
+                   __FUNCTION__);
+         }
+#endif
       }
 
 #if defined(_WIN32)