diff options
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |