]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: make 'journalctl --flush' or friends not fail with varlink timeout 12661/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 May 2019 13:32:08 +0000 (22:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 4 Jun 2019 14:27:26 +0000 (23:27 +0900)
Closes #12570.

src/journal/journalctl.c

index b7c378eaa94770621db07cf0b618f80a1a786a58..3d053c59f008520264bb50c231cb276ca49c2c5c 100644 (file)
@@ -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)