/*********************************************************
- * 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
__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;
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]);
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;
/* 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