mirror of
https://github.com/eddyem/SBIG_340.git
synced 2026-03-22 09:41:02 +03:00
socket.c line 245: if(_read < 0){ -> if(_read < 1){
This commit is contained in:
2
socket.c
2
socket.c
@@ -242,7 +242,7 @@ void *handle_socket(void *asock){
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
_read = read(sock, buff, BUFLEN);
|
_read = read(sock, buff, BUFLEN);
|
||||||
if(_read < 0){ // error or disconnect
|
if(_read < 1){ // error or disconnect
|
||||||
DBG("Nothing to read from fd %d (ret: %zd)", sock, _read);
|
DBG("Nothing to read from fd %d (ret: %zd)", sock, _read);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user