diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-01-15 15:18:50 +0000 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-01-15 15:22:43 +0000 |
commit | eb2104e1ff07dcc7a05f81f8b87db9b6c77d8f5d (patch) | |
tree | f564b2fa17b89a746eec7623478dcdb20d70c193 /src/log.c | |
parent | 4fb2c1403907a860c407471537484ba5cf1ef992 (diff) |
log: remove special case code for daemonized mode without logfile
if daemon mode is used and neither logfile nor syslog options specified,
this is clearly a misconfiguration issue. don't try to be smart and work
around that, so less global state information is required.
also, this case is already checked for in main.c:334.
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -74,10 +74,7 @@ static unsigned int logging_initialized = FALSE; /* boolean */ int open_log_file (const char *log_file_name) { if (log_file_name == NULL) { - if(config.godaemon == FALSE) - log_file_fd = fileno(stdout); - else - log_file_fd = -1; + log_file_fd = fileno(stdout); } else { log_file_fd = create_file_safely (log_file_name, FALSE); } |