new config option, stdout/stdin closed

Now stdin and stdout get closed. Additionally stderr gets closed and
reopened to the new config option „logfile“ if specified
This commit is contained in:
Christian Kruse
2014-01-16 15:22:34 +01:00
parent 4f3bd6612c
commit 9563877fbb
7 changed files with 21 additions and 5 deletions

View File

@@ -322,7 +322,7 @@ main(int argc, char **argv)
* at, but it often requires detailed logging to troubleshoot
* problems.
*/
logger_init(progname, options.loglevel, options.logfacility);
logger_init(&options, progname, options.loglevel, options.logfacility);
if (runtime_options.verbose)
logger_min_verbose(LOG_INFO);