1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-26 08:55:40 +03:00

varlinkctl: flush stdout after each record in --more mode

So things work correctly even if varlinkctl's output is redirected to a
file.
This commit is contained in:
Frantisek Sumsal 2024-01-16 19:35:01 +01:00 committed by Vishal Chillara Srinivas
parent 343d2d2950
commit fb02abccf0

View File

@ -522,6 +522,7 @@ static int reply_callback(
if (!arg_quiet)
sd_json_variant_dump(parameters, arg_json_format_flags, stdout, NULL);
fflush(stdout);
return r;
}