From adac447f46b50e2d5d4a43f2f1697ad2ccda788d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 3 Apr 2005 18:39:10 +0000 Subject: Added code to shutdown listening sockets on exit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@964 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 74682edb1..60fcbe378 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -99,7 +99,7 @@ extern std::vector factory; std::vector fd_reap; extern int MODCOUNT; - +int openSockfd[MAXSOCKS]; bool nofork = false; namespace nspace @@ -3202,7 +3202,7 @@ int InspIRCd(void) { struct sockaddr_in client,server; char addrs[MAXBUF][255]; - int openSockfd[MAXSOCKS], incomingSockfd, result = TRUE; + int incomingSockfd, result = TRUE; socklen_t length; int count = 0; int selectResult = 0, selectResult2 = 0; -- cgit v1.2.3