From 9e29521e27b8f48c7817b18bf155736daf9a8a2f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 10 Nov 2017 21:04:08 +0100 Subject: [PATCH] loginctl: invoke sigbus_install() We show journal data, hence we should install the SIGBUS handler. Similar for machinectl, where the same applies. --- src/login/loginctl.c | 2 ++ src/machine/machinectl.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 905003ea872..f3231bc0e4e 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 a6542d5a16f..a44d75604ae 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)