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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user