]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Tue, 24 Aug 2010 18:15:12 +0000 (11:15 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 24 Aug 2010 18:15:12 +0000 (11:15 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/misc/posixPosix.c

index e2375af1fdbdf70e7f3c28a6a42df050753e8bec..f5dd2aa1783b6a5257473d16e7c4aa2b9b0f77be 100644 (file)
@@ -459,9 +459,22 @@ Posix_Access(ConstUnicode pathName,  // IN:
       return -1;
    }
 
+#if defined(VMX86_SERVER)
+   /*
+    * ESX can return EINTR making retries a necessity. This is a bug in
+    * ESX that is being worked around here - POSIX says access cannot return
+    * EINTR.
+    */
+
+   do {
+      ret = access(path, mode);
+   } while ((ret == -1) && (errno == EINTR));
+#else
    ret = access(path, mode);
+#endif
 
    free(path);
+
    return ret;
 }