]> 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, 7 Jun 2021 20:29:01 +0000 (13:29 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 7 Jun 2021 20:29:01 +0000 (13:29 -0700)
open-vm-tools/services/vmtoolsd/mainLoop.c

index e68b908d1c13e6aa2bab0fa60ca902b9d7e4bc63..119f974d6f7fb64d744a22ce293c5e87d808004c 100644 (file)
@@ -62,6 +62,7 @@
 #if defined(_WIN32)
 #  include "codeset.h"
 #  include "toolsNotify.h"
+#  include "vsockets.h"
 #  include "windowsu.h"
 #else
 #  include "posix.h"
@@ -433,6 +434,16 @@ ToolsCoreResetSignalCb(gpointer src,          // IN
 static int
 ToolsCoreRunLoop(ToolsServiceState *state)
 {
+#if defined(_WIN32)
+   /*
+    * Verify VSockets are fully initialized before any real work.
+    * For example, this can be broken by OS upgrades, see PR 2743009.
+    */
+   if (state->mainService) {
+      VSockets_Initialized();
+   }
+#endif
+
    if (!ToolsCore_InitRpc(state)) {
       return 1;
    }