summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-20 15:38:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-20 15:38:40 +0000
commit3a28a843033c87658c45f83a8826676e9e4e4409 (patch)
tree444495ee54fed48d89b5b044fa3eb5f4562638aa /src
parent345ef802952ccb181d9df76533201ac7f840b267 (diff)
*** empty log message ***
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1464 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index e5d463008..9f5a0e69c 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2836,11 +2836,7 @@ int InspIRCd(char** argv, int argc)
}
tvs.tv_usec = 30000L;
tvs.tv_sec = 0;
-#ifdef IS_SOLARIS
- int servresult = select(1024, &serverfds, NULL, NULL, &tvs);
-#else
- int servresult = select(32767, &serverfds, NULL, NULL, &tvs);
-#endif
+ int servresult = select(FD_SETSIZE, &serverfds, NULL, NULL, &tvs);
if (servresult > 0)
{
for (int x = 0; x != SERVERportCount; x++)
@@ -3100,12 +3096,7 @@ int InspIRCd(char** argv, int argc)
#ifdef USE_SELECT
tval.tv_sec = 0;
tval.tv_usec = 1000L;
-#ifdef IS_SOLARIS
- selectResult2 = select(1024, &sfd, NULL, NULL, &tval);
-#else
- selectResult2 = select(65535, &sfd, NULL, NULL, &tval);
-#endif
-
+ selectResult2 = select(FD_SETSIZE, &sfd, NULL, NULL, &tval);
// now loop through all of the items in this pool if any are waiting
if ((selectResult2 > 0) && (xcount != clientlist.end()))
for (user_hash::iterator count2a = xcount; count2a != endingiter; count2a++)