clean comment and stuff
This commit is contained in:
@@ -18,7 +18,12 @@ void Webserv::_accept_connection(listen_socket &lsocket)
|
||||
_handle_last_signal();
|
||||
return ;
|
||||
}
|
||||
::fcntl(accepted_fd, F_SETFL, O_NONBLOCK);
|
||||
if (::fcntl(accepted_fd, F_SETFL, O_NONBLOCK) == -1)
|
||||
{
|
||||
std::perror("err fcntl()");
|
||||
if (::close(accepted_fd) == -1)
|
||||
std::perror("err close()");
|
||||
}
|
||||
|
||||
infos = _extract_infos(addr);
|
||||
Client new_client(accepted_fd, &lsocket, infos["port"], infos["ip"]);
|
||||
|
||||
Reference in New Issue
Block a user