]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Enhancing CAF listener preconfigured check logic to update the preconfigured flag...
authorOliver Kurth <okurth@vmware.com>
Tue, 27 Feb 2018 03:23:18 +0000 (19:23 -0800)
committerOliver Kurth <okurth@vmware.com>
Tue, 27 Feb 2018 03:23:18 +0000 (19:23 -0800)
commit14a0ffe23be6437c9ee656ccf2d516ead6265dfd
treeeaf24fb2ea9820d3c92227f4d67e1628edb4922f
parent60f7afc97264435e1c04c2e70fe39397261b52b4
Enhancing CAF listener preconfigured check logic to update the preconfigured flag at runtime

1. Preconfigure listener and start listener upon tunnel enabled logic are
   invoked in two different threads.
2. There is a case where preconfigure logic is performed after the
   pre-configured flag is computed in the enable-listener thread.

The current patch invalidates the flag in the start listener thread and
should guarantee the preconfigured status is up-to-date.
open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CMonitorListener.cpp
open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CMonitorListener.h