]> 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>
Fri, 11 Dec 2020 05:05:49 +0000 (21:05 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Dec 2020 05:05:49 +0000 (21:05 -0800)
open-vm-tools/services/vmtoolsd/mainLoop.c

index bb9591ad2d4ac13e349b07062770340ceaba6f86..7189caa38d61cb43643e87dfe683018fb8376169 100644 (file)
@@ -53,6 +53,7 @@
 #  include "codeset.h"
 #  include "guestStoreClient.h"
 #  include "globalConfig.h"
+#  include "toolsNotify.h"
 #  include "windowsu.h"
 #else
 #  include "posix.h"
@@ -130,6 +131,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) {
@@ -509,6 +513,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)