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