X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_restart.cpp;h=0d723ead9adc2f7611d441ab9096e226a21914b9;hb=59b1a8955142935b02af6446005ab47fc7c3fc8c;hp=48cf6e7033ccfaca694a63ca6e5cec585b6b869f;hpb=293df6a8b55e89c127e60e92711ef0ef1027bff8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp index 48cf6e703..0d723ead9 100644 --- a/src/cmd_restart.cpp +++ b/src/cmd_restart.cpp @@ -2,10 +2,10 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. * E-mail: - * - * + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see @@ -60,7 +60,7 @@ extern chan_hash chanlist; extern whowas_hash whowas; extern std::vector all_opers; extern std::vector local_users; -extern userrec* fd_ref_table[65536]; +extern userrec* fd_ref_table[MAX_DESCRIPTORS]; void cmd_restart::Handle (char **parameters, int pcnt, userrec *user) { @@ -85,7 +85,7 @@ void cmd_restart::Handle (char **parameters, int pcnt, userrec *user) // close ALL file descriptors send_error("Server restarting."); sleep(1); - for (int i = 0; i < 65536; i++) + for (int i = 0; i < MAX_DESCRIPTORS; i++) { shutdown(i,2); close(i);