mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-03-20 00:30:59 +03:00
remove bug with sockets: write->send(..., MSG_NOSIGNAL)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user