diff options
author | varmojfekoj <theinric@redhat.com> | 2009-11-17 09:00:01 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-17 09:00:01 +0100 |
commit | 30c2e42ec305bb97bd04172e5c02b89eeea53e35 (patch) | |
tree | 9a4752ef46da708ff1e6172376851d16a8c68bf8 /tools/syslogd.c | |
parent | c104eea4e5d0aeb4c87ee23fab8532530d5fe0e9 (diff) | |
download | rsyslog-30c2e42ec305bb97bd04172e5c02b89eeea53e35.tar.gz rsyslog-30c2e42ec305bb97bd04172e5c02b89eeea53e35.tar.xz rsyslog-30c2e42ec305bb97bd04172e5c02b89eeea53e35.zip |
added option to use unlimited-size select() calls
Thanks to varmjofekoj for the patch
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
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 5f6b480f..687f2217 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -2150,6 +2150,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: |