remove bug with sockets: write->send(..., MSG_NOSIGNAL)

This commit is contained in:
2022-03-24 12:16:41 +03:00
parent 76a1ec0e81
commit 9a06693673
6 changed files with 9 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ static int send_data(int sock, int webquery, char *textbuf){
WARN("sprintf()");
return 0;
}
if(L != write(sock, tbuf, L)){
if(L != send(sock, tbuf, L, MSG_NOSIGNAL)){
WARN("write");
return 0;
}