oui
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/21 09:31:17 by maldavid #+# #+# */
|
||||
/* Updated: 2024/02/06 11:37:58 by vvaas ### ########.fr */
|
||||
/* Updated: 2024/02/06 12:21:13 by vvaas ### ########.fr */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
@@ -244,13 +244,7 @@ namespace irc
|
||||
(*it)->kill("Server shutting down");
|
||||
}
|
||||
closeMainSocket();
|
||||
for(int i = 0; i < FD_MAX; ++i)
|
||||
{
|
||||
if (FD_ISSET(i, &_fd_set))
|
||||
{
|
||||
close(i);
|
||||
FD_CLR(i, &_fd_set);
|
||||
}
|
||||
}
|
||||
for(int i = 3; i <= FD_MAX; ++i)
|
||||
close(i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user