diff --git a/src/varlinkctl/varlinkctl.c b/src/varlinkctl/varlinkctl.c index 9e32156239..808ae95348 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);