]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix log recursion issue in DestroyRpcChannel()
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 18 Aug 2020 14:14:11 +0000 (07:14 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 18 Aug 2020 14:14:11 +0000 (07:14 -0700)
Avoid calling g_xxx() logging routines in any function directly or
indirectly invoked from VmxGuestLog().  Change the g_debug() call in
DestroyRpcChannel() to a Debug() call.

open-vm-tools/libvmtools/vmtoolsLog.c

index 780c0e1e7053d00e4ff9e6ef8c66e48313dd0a0a..a991b49ff285de94355bec3286ecf50c161debc8 100644 (file)
@@ -1747,7 +1747,8 @@ DestroyRpcChannel(void)
 
    gChannel = NULL;
 
-   g_debug("RPCI Channel for logging is destroyed successfully.\n");
+   /* Fix log recursion issue, check bug: 2607084 for more details */
+   Debug("RPCI Channel for logging is destroyed successfully.\n");
 }