From: Lennart Poettering Date: Fri, 10 Nov 2017 20:04:08 +0000 (+0100) Subject: loginctl: invoke sigbus_install() X-Git-Tag: v236~235^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e29521e27b8f48c7817b18bf155736daf9a8a2f;p=platform%2Fupstream%2Fsystemd.git loginctl: invoke sigbus_install() We show journal data, hence we should install the SIGBUS handler. Similar for machinectl, where the same applies. --- diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 905003e..f3231bc 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -37,6 +37,7 @@ #include "pager.h" #include "parse-util.h" #include "process-util.h" +#include "sigbus.h" #include "signal-util.h" #include "spawn-polkit-agent.h" #include "strv.h" @@ -1589,6 +1590,7 @@ int main(int argc, char *argv[]) { setlocale(LC_ALL, ""); log_parse_environment(); log_open(); + sigbus_install(); r = parse_argv(argc, argv); if (r <= 0) diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index a6542d5..a44d756 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -52,15 +52,16 @@ #include "path-util.h" #include "process-util.h" #include "ptyfwd.h" +#include "sigbus.h" #include "signal-util.h" #include "spawn-polkit-agent.h" +#include "stdio-util.h" #include "strv.h" #include "terminal-util.h" #include "unit-name.h" #include "util.h" #include "verbs.h" #include "web-util.h" -#include "stdio-util.h" #define ALL_IP_ADDRESSES -1 @@ -3051,6 +3052,7 @@ int main(int argc, char*argv[]) { setlocale(LC_ALL, ""); log_parse_environment(); log_open(); + sigbus_install(); r = parse_argv(argc, argv); if (r <= 0)