. Fix incorrect MXUserNativeRWRelease read/write mode.
. changes in shared code that don't affect open-vm-tools functionality.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
*/
#define HOST_AGENT_SERVICE_NAME "VMwareHostd"
+// Name of the environment variable that controls which proxy server to use
+// while opening connections to vCenter and vSphere servers. Currently vCloud
+// VMRC uses it.
+#define VMWARE_HTTPSPROXY "VMWARE_HTTPSPROXY"
+
+// Name of the environment variable that controls whether MKS traffic should
+// be tunnelled over HTTPS through the console proxy. Currently vCloud VMRC
+// uses it.
+#define VMWARE_HTTPSTUNNEL_MKS "VMWARE_HTTPSTUNNEL_MKS"
+
+
#endif /* VM_PRODUCT_H */
Atomic_Dec(&lock->holderCount);
if (LIKELY(lock->useNative)) {
- int err = MXUserNativeRWRelease(&lock->nativeLock, myContext->state);
+ int err = MXUserNativeRWRelease(&lock->nativeLock,
+ myContext->state == RW_LOCKED_FOR_READ);
if (UNLIKELY(err != 0)) {
MXUserDumpAndPanic(&lock->header, "%s: Internal error (%d)\n",