diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-19 21:32:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-20 10:57:50 +0100 |
commit | afe44c8ffd389b6296713acc8d56c68d2e44994b (patch) | |
tree | 490598d63e4a4964f6dc4c580404f9050ba1ffa7 /src/hibernate-resume | |
parent | Merge pull request #10787 from yuwata/libudev-cleanups (diff) | |
download | systemd-afe44c8ffd389b6296713acc8d56c68d2e44994b.tar.xz systemd-afe44c8ffd389b6296713acc8d56c68d2e44994b.zip |
generators: introduce a common implementation for the log setup boilerplate
Diffstat (limited to 'src/hibernate-resume')
-rw-r--r-- | src/hibernate-resume/hibernate-resume-generator.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/hibernate-resume/hibernate-resume-generator.c b/src/hibernate-resume/hibernate-resume-generator.c index bfee2fde31..fd58720779 100644 --- a/src/hibernate-resume/hibernate-resume-generator.c +++ b/src/hibernate-resume/hibernate-resume-generator.c @@ -5,6 +5,7 @@ #include "alloc-util.h" #include "fstab-util.h" +#include "generator.h" #include "log.h" #include "mkdir.h" #include "proc-cmdline.h" @@ -68,10 +69,7 @@ static int process_resume(void) { int main(int argc, char *argv[]) { int r = 0; - log_set_prohibit_ipc(true); - log_set_target(LOG_TARGET_AUTO); - log_parse_environment(); - log_open(); + log_setup_generator(); umask(0022); |