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

2
log.h
View File

@@ -114,7 +114,7 @@ void stderr_log_with_level(const char *level_name, int level, const char *fmt, .
/* Logger initialisation and shutdown */
bool logger_shutdown(void);
bool logger_init(const char* ident, const char* level, const char* facility);
bool logger_init(t_configuration_options *opts, const char* ident, const char* level, const char* facility);
void logger_min_verbose(int minimum);
extern int log_type;