journalctl: make 'journalctl --flush' or friends not fail with varlink timeout

Closes #12570.
This commit is contained in:
Yu Watanabe
2019-06-04 23:27:26 +09:00
parent f2083c718b
commit 0bd3c2102f
+1
View 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)