From 0bd3c2102f5eea4b4a3c780437b9af978aca36b6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 24 May 2019 22:32:08 +0900 Subject: [PATCH] journalctl: make 'journalctl --flush' or friends not fail with varlink timeout Closes #12570. --- src/journal/journalctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index b7c378eaa94..3d053c59f00 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) -- 2.47.3