diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-24 22:32:08 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-04 23:27:26 +0900 |
commit | 0bd3c2102f5eea4b4a3c780437b9af978aca36b6 (patch) | |
tree | 0346927909426cca2d0fee7882c18c991400bbe7 /src/journal | |
parent | f2083c718bf6928f15392297823873f58bc5aa45 (diff) | |
download | systemd-0bd3c2102f5eea4b4a3c780437b9af978aca36b6.tar.gz systemd-0bd3c2102f5eea4b4a3c780437b9af978aca36b6.tar.bz2 systemd-0bd3c2102f5eea4b4a3c780437b9af978aca36b6.zip |
journalctl: make 'journalctl --flush' or friends not fail with varlink timeout
Closes #12570.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journalctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index b7c378eaa9..3d053c59f0 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1952,6 +1952,7 @@ static int simple_varlink_call(const char *option, const char *method) { return log_error_errno(r, "Failed to connect to /run/systemd/journal/io.systemd.journal: %m"); (void) varlink_set_description(link, "journal"); + (void) varlink_set_relative_timeout(link, USEC_INFINITY); r = varlink_call(link, method, NULL, NULL, &error, NULL); if (r < 0) |