X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/68ff929f3d4d614c131b8e3b67052ba0a2bbec8e..af81d5a0b09446188fd6f9c292b51519f2c1cedd:/src/restart.c diff --git a/src/restart.c b/src/restart.c index cc831e4..bcfeebf 100644 --- a/src/restart.c +++ b/src/restart.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: restart.c 3249 2007-03-05 18:51:17Z nenolod $ + * $Id: restart.c 3354 2007-04-03 09:21:31Z nenolod $ */ #include "stdinc.h" @@ -55,6 +55,7 @@ void server_reboot(void) { int i; + int maxconn = rb_get_maxconnections(); sendto_realops_snomask(SNO_GENERAL, L_ALL, "Restarting server..."); @@ -62,14 +63,14 @@ server_reboot(void) /* * XXX we used to call flush_connections() here. But since this routine * doesn't exist anymore, we won't be flushing. This is ok, since - * when close handlers come into existance, comm_close() will be called + * when close handlers come into existance, rb_close() will be called * below, and the data flushing will be implicit. * -- adrian * * 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);