1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

varlinkctl: send READY=1 for --more calls once we received first reply

This commit is contained in:
Lennart Poettering
2025-09-24 18:01:04 +02:00
parent 0d2cc656c8
commit 2eb0820d86

View File

@@ -587,8 +587,13 @@ static int reply_callback(
else
r = *ret = log_error_errno(SYNTHETIC_ERRNO(EBADE), "Method call failed: %s", error);
}
} else
} else {
/* Let the caller know we have received at least one reply now. This is useful for
* subscription style interfaces where the first reply indicates the subscription being
* successfully enabled. */
(void) sd_notify(/* unset_environment= */ false, "READY=1");
r = 0;
}
if (!arg_quiet)
sd_json_variant_dump(parameters, arg_json_format_flags, stdout, NULL);