diff options
Diffstat (limited to 'src/cmd_restart.cpp')
-rw-r--r-- | src/cmd_restart.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp index 48cf6e703..f7820187c 100644 --- a/src/cmd_restart.cpp +++ b/src/cmd_restart.cpp @@ -60,7 +60,7 @@ extern chan_hash chanlist; extern whowas_hash whowas; extern std::vector<userrec*> all_opers; extern std::vector<userrec*> 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); |