From 77040a0d0aecd56090c48330cf4f03ec1aaa91f5 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 3 Apr 2005 22:02:46 +0000 Subject: Added shutdown() calls on die git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@971 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 7330a3f6f..636710b8e 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -55,6 +55,11 @@ void Killed(int status) if (log_file) fclose(log_file); send_error("Server terminated."); + // close down all listening sockets + for (int count = 0; count < boundPortCount; count++) + { + shutdown(openSockfd[count], 2); + } exit(status); } -- cgit v1.2.3