Log socket errors
Do not silently ignore close() and shutdown() errors, and use perror() to get the errno.
This commit is contained in:
@@ -11,6 +11,6 @@ void net_cleanup(void) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void net_close(socket_t socket) {
|
||||
close(socket);
|
||||
SDL_bool net_close(socket_t socket) {
|
||||
return !close(socket);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user