ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/fdlist.c
(Generate patch)

Comparing ircd-hybrid-8/src/fdlist.c (file contents):
Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC vs.
Revision 1236 by michael, Thu Sep 29 11:21:27 2011 UTC

# Line 28 | Line 28
28   #include "event.h"
29   #include "ircd.h"    /* GlobalSetOptions */
30   #include "irc_string.h"
31 – #include "rlimits.h"
31   #include "s_bsd.h"   /* comm_setselect */
32   #include "s_conf.h"  /* ServerInfo */
33   #include "send.h"
# Line 77 | Line 76 | recalc_fdlimit(void *unused)
76    int fdmax;
77    struct rlimit limit;
78  
79 <  if (!getrlimit(RLIMIT_FD_MAX, &limit))
79 >  if (!getrlimit(RLIMIT_NOFILE, &limit))
80    {
81      limit.rlim_cur = limit.rlim_max;
82 <    setrlimit(RLIMIT_FD_MAX, &limit);
82 >    setrlimit(RLIMIT_NOFILE, &limit);
83    }
84  
85    fdmax = getdtablesize();

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)