From: Lennart Poettering Date: Wed, 24 Sep 2025 16:01:04 +0000 (+0200) Subject: varlinkctl: send READY=1 for --more calls once we received first reply X-Git-Tag: v259-rc1~422^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2eb0820d862bde366b12f820b609db2a9cb465c2;p=thirdparty%2Fsystemd.git varlinkctl: send READY=1 for --more calls once we received first reply --- diff --git a/src/varlinkctl/varlinkctl.c b/src/varlinkctl/varlinkctl.c index 9e32156239f..808ae95348c 100644 --- a/src/varlinkctl/varlinkctl.c +++ b/src/varlinkctl/varlinkctl.c @@ -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);