14 Jan
2009
14 Jan
'09
12:12 p.m.
Hi, in 3.0.1, in src/gprocess.c, line 112, the fd_limit_min is set to the fixed value 4096. This doesn't work well on systems which have a hard limit smaller than 4K. While there's a command line option --fd-limit (but unfortunately no equivalent config file option), the default on those systems is to get an error message at startup: syslog-ng: Error setting file number limit; limit='4096'; error='Too many open files' Wouldn't it be better to choose a system specifc default like OPEN_MAX instead or better, to call sysconf(_SC_OPEN_MAX) to fetch the system default and only use 4096 as fallback if none of the two is available or the values are larger than 4K? Corinna -- Corinna Vinschen Cygwin Project Co-Leader Red Hat