From: Yu Watanabe Date: Sat, 7 Oct 2023 07:11:32 +0000 (+0900) Subject: tree-wide: add missing sigbus handling X-Git-Tag: v255-rc1~300 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=955fc5d8ab153ce144d05f0e98120eb9c14bc86c;p=thirdparty%2Fsystemd.git tree-wide: add missing sigbus handling --- diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index 4f789a5f660..3ffac96d7a3 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -20,6 +20,7 @@ #include "pretty-print.h" #include "process-util.h" #include "rlimit-util.h" +#include "sigbus.h" #include "signal-util.h" #include "socket-netlink.h" #include "socket-util.h" @@ -1090,6 +1091,8 @@ static int run(int argc, char **argv) { /* The journal merging logic potentially needs a lot of fds. */ (void) rlimit_nofile_bump(HIGH_RLIMIT_NOFILE); + sigbus_install(); + r = parse_config(); if (r < 0) return r; diff --git a/src/journal/bsod.c b/src/journal/bsod.c index 512536412d4..7c2bead389f 100644 --- a/src/journal/bsod.c +++ b/src/journal/bsod.c @@ -19,6 +19,7 @@ #include "main-func.h" #include "pretty-print.h" #include "qrcode-util.h" +#include "sigbus.h" #include "sysctl-util.h" #include "terminal-util.h" @@ -267,6 +268,8 @@ static int run(int argc, char *argv[]) { log_open(); log_parse_environment(); + sigbus_install(); + r = parse_argv(argc, argv); if (r <= 0) return r; diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 8c0b096e1de..ad26bd7009e 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -57,6 +57,7 @@ #include "path-util.h" #include "pretty-print.h" #include "set.h" +#include "sigbus.h" #include "socket-netlink.h" #include "socket-util.h" #include "sort-util.h" @@ -3584,6 +3585,8 @@ static int run(int argc, char* argv[]) { log_setup(); + sigbus_install(); + r = parse_argv(argc, argv); if (r <= 0) return r;