fix goalc crash and clang warnings (#1441)

This commit is contained in:
water111
2022-06-11 16:52:27 -04:00
committed by GitHub
parent 7c5c7003b3
commit 7bf19759d3
7 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ int set_socket_timeout(int socket, long microSeconds) {
int write_to_socket(int socket, const char* buf, int len) {
int bytes_wrote = 0;
#ifdef __linux
bytes_wrote = write(socket, buf, len);
bytes_wrote = send(socket, buf, len, MSG_NOSIGNAL);
#elif _WIN32
bytes_wrote = send(socket, buf, len, 0);
#endif