diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-17 09:10:24 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-17 09:10:24 +0100 |
commit | f94a3034b6c2218f51be5ab84bae591269e07215 (patch) | |
tree | 687ef09644b4c315790becfff8088a05b1d9896e /tools/syslogd.c | |
parent | 4af3a1d72d658a83b6b891ef37b0cd0471ba0e15 (diff) | |
parent | 30c2e42ec305bb97bd04172e5c02b89eeea53e35 (diff) | |
download | rsyslog-f94a3034b6c2218f51be5ab84bae591269e07215.tar.gz rsyslog-f94a3034b6c2218f51be5ab84bae591269e07215.tar.xz rsyslog-f94a3034b6c2218f51be5ab84bae591269e07215.zip |
integrating varmojfekoj's "unlimited select()" patch into v4-devel
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r-- | tools/syslogd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index f5ed39c8..406fca02 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -1834,6 +1834,9 @@ static rsRetVal setMaxFiles(void __attribute__((unused)) *pVal, int iFiles) iFiles, errStr, (long) maxFiles.rlim_max); ABORT_FINALIZE(RS_RET_ERR_RLIM_NOFILE); } +#ifdef USE_UNLIMITED_SELECT + glbl.SetFdSetSize(howmany(iFiles, __NFDBITS) * sizeof (fd_mask)); +#endif DBGPRINTF("Max number of files set to %d [kernel max %ld].\n", iFiles, (long) maxFiles.rlim_max); finalize_it: |