loginctl: invoke sigbus_install()
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Nov 2017 20:04:08 +0000 (21:04 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Nov 2017 20:09:13 +0000 (21:09 +0100)
We show journal data, hence we should install the SIGBUS handler.

Similar for machinectl, where the same applies.

src/login/loginctl.c
src/machine/machinectl.c

index 905003e..f3231bc 100644 (file)
@@ -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)
index a6542d5..a44d756 100644 (file)
 #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)