summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-26 19:27:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-26 19:27:07 +0000
commitddb55c296c5b76bc048c7328af1a6b01485092b8 (patch)
treeb135f0bb8f6d9c57a19d1606f619efe941dbbf5a /configure
parent64f7f6da9cf8f3f79dd665880b4f9d25cc6e4ba1 (diff)
Allow configuring of MAX_DESCRIPTORS by picking max number of clients
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5542 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 15c31f1c7..16c454758 100755
--- a/configure
+++ b/configure
@@ -597,7 +597,7 @@ should NOT be used. You should probably specify a newer compiler.\n\n";
$var = $config{MAX_CLIENT};
}
if ($var =~ /^\d+$/) {
- if (($var > $config{MAX_CLIENT_T}) && ($fd_scan_failed ne true)) {
+ if (($var > $config{MAX_CLIENT_T}) && ($fd_scan_fail ne "true")) {
# Client has entered a larger number than the 'discovered' value
# Confirm.
print "WARNING: Our scans have indicated that you are attempting
@@ -616,6 +616,7 @@ you wish to do this? It may cause the IRCd to malfunction [y/n]
}
# If we get here, we should be good to go.
$config{MAX_CLIENT} = $var;
+ $config{MAX_DESCRIPTORS} = $var;
$continue = 1;
print "\n";
}