so if there were any problems opening logs, we would complain to
stderr (which wouldn't work) and then mysteriously exit.
svn:r2366
return -1;
}
- /* Start backgrounding the process, if requested. */
- if (options.RunAsDaemon) {
- start_daemon(get_data_directory(&options));
- }
-
/* Configure the log(s) */
if (config_init_logs(&options)<0)
return -1;
* gone. */
close_temp_logs();
+ /* Start backgrounding the process, if requested. */
+ if (options.RunAsDaemon) {
+ start_daemon(get_data_directory(&options));
+ }
+
/* Set up our buckets */
connection_bucket_init();
stats_prev_global_read_bucket = global_read_bucket;