loginctl: invoke sigbus_install()

We show journal data, hence we should install the SIGBUS handler.

Similar for machinectl, where the same applies.
This commit is contained in:
Lennart Poettering 2017-11-10 21:04:08 +01:00
parent f332611abe
commit 9e29521e27
2 changed files with 5 additions and 1 deletions

View 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)

View file

@ -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)