]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/restart.c
Merge links_cache into scache and rework scache.
[irc/rqf/shadowircd.git] / src / restart.c
index 4ccfb76a5a13af2306504ceab5a12b672bc53f08..147b5dc3fb5f695a2c178f7551c4a29321f35b24 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: restart.c 486 2006-01-15 10:36:32Z nenolod $
+ *  $Id: restart.c 3354 2007-04-03 09:21:31Z nenolod $
  */
 
 #include "stdinc.h"
@@ -46,7 +46,7 @@ restart(const char *mesg)
                abort();
        was_here = YES;
 
-       ilog(L_MAIN, "Restarting Server because: %s, memory data limit: %ld", mesg, get_maxrss());
+       ilog(L_MAIN, "Restarting Server because: %s", mesg);
 
        server_reboot();
 }
@@ -55,6 +55,7 @@ void
 server_reboot(void)
 {
        int i;
+       int maxconn = comm_get_maxconnections();
 
        sendto_realops_snomask(SNO_GENERAL, L_ALL, "Restarting server...");
 
@@ -69,7 +70,7 @@ server_reboot(void)
         * bah, for now, the program ain't coming back to here, so forcibly
         * close everything the "wrong" way for now, and just LEAVE...
         */
-       for (i = 0; i < MAXCONNECTIONS; ++i)
+       for (i = 0; i < maxconn; ++i)
                close(i);
 
        unlink(pidFileName);