Ugo Bellavance <iolubik@...> wrote: > I only use local config files, so that wouldn't be a problem. Is it > hard to implement? The difficult point is that conf_parse() is not re-entrant. You cannot just call it again from itself each time you see an include directive. That probably means you need to have two passes. First pass looks for include directives, builds a flat file and second pass actually parse the file. So we would have to add a new parser, for instance in files called preconf_lex.l preconf_yacc.y. It would build a flat config in a temporary file and a chained list of included files to monitor. Next step is to modify the config reload code: 1) monitor the list of included files 2) If a change was detected, create a temporary file with mkstemp 3) Call preconf_parse() 4) Call conf_parse() -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu@...
Message
Re: [milter-greylist] Re: Include config files
2006-07-18 by manu@netbsd.org
Attachments
- No local attachments were found for this message.