From afe44c8ffd389b6296713acc8d56c68d2e44994b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Nov 2018 21:32:11 +0100 Subject: generators: introduce a common implementation for the log setup boilerplate --- src/getty-generator/getty-generator.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/getty-generator') diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c index 6af4c39137..8015154679 100644 --- a/src/getty-generator/getty-generator.c +++ b/src/getty-generator/getty-generator.c @@ -8,6 +8,7 @@ #include "alloc-util.h" #include "fd-util.h" #include "fileio.h" +#include "generator.h" #include "log.h" #include "mkdir.h" #include "path-util.h" @@ -120,10 +121,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); -- cgit v1.2.3