]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file changes not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Tue, 21 Apr 2020 21:43:45 +0000 (14:43 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 21 Apr 2020 21:43:45 +0000 (14:43 -0700)
open-vm-tools/lib/poll/poll.c

index fd5ce4b1870f5d771197e51b0c4e33f40cde0a91..4ddd8637ecc5caa21a94598a47fae91778f6c28d 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2020 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -2056,7 +2056,7 @@ PollUnitTest_StateMachine(void *clientData) // IN: Unused
                     __FUNCTION__, i);
             break;
          }
-         send(socketPairs[i].fds[0], (const char *)fds, sizeof fds, 0);
+         retval = send(socketPairs[i].fds[0], (const char *)fds, sizeof fds, 0);
 #else
          int addrFamily = useVMCI ? VMCISock_GetAFValue(): AF_UNIX;
          socketPairs[i].fds[0] = -1;
@@ -2134,7 +2134,7 @@ PollUnitTest_StateMachine(void *clientData) // IN: Unused
             state ++;
             break;
          }
-         send(fds[0], (const char *)fds, sizeof fds, 0);
+         retval = send(fds[0], (const char *)fds, sizeof fds, 0);
    #else
          close(fds[0]);
          close(fds[1]);
@@ -2177,7 +2177,7 @@ PollUnitTest_StateMachine(void *clientData) // IN: Unused
             state += 3;
             break;
          }
-         send(fds[0], (const char *)fds, sizeof fds, 0);
+         retval = send(fds[0], (const char *)fds, sizeof fds, 0);
    #endif
          state = 0;
          break;
@@ -2217,7 +2217,7 @@ PollUnitTest_StateMachine(void *clientData) // IN: Unused
 
       /* Make fds[1] both readable and writable. */
    #ifdef _WIN32
-      send(fds[0], (const char *)fds, sizeof fds, 0);
+      retval = send(fds[0], (const char *)fds, sizeof fds, 0);
    #else
       retval = write(fds[0], fds, 1);
    #endif