journalctl: make 'journalctl --flush' or friends not fail with varlink timeout
Closes #12570.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user