generators: introduce a common implementation for the log setup boilerplate

This commit is contained in:
Lennart Poettering
2018-11-20 10:57:50 +01:00
parent 4874191d9d
commit afe44c8ffd
13 changed files with 26 additions and 44 deletions
+1 -4
View File
@@ -583,10 +583,7 @@ int main(int argc, char *argv[]) {
if (argc > 1)
arg_dest = argv[1];
log_set_prohibit_ipc(true);
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
log_open();
log_setup_generator();
umask(0022);