return NULL;
}
-static int kexec_cb(__attribute__((unused)) struct pbt_client *client, struct pb_opt_data *opt_data)
+static int kexec_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
{
int result;
pb_log("%s: %s\n", __func__, opt_data->name);
- result = pb_run_kexec(opt_data->kd);
+ result = pb_run_kexec(opt_data->bd, client->dry_run);
return result;
}
static int run(struct pbt_client *client)
{
while (1) {
- int result = waiter_poll();
+ int result = waiter_poll(client->waitset);
if (result < 0 && errno != EINTR) {
pb_log("%s: poll: %s\n", __func__, strerror(errno));
return EXIT_FAILURE;
}
- client = pbt_client_init(opts.backend, 900, 300, kexec_cb,
- opts.start_daemon);
+ client = pbt_client_init(opts.backend, 1024, 640, kexec_cb,
+ opts.start_daemon, opts.dry_run);
if (!client) {
ui_result = EXIT_FAILURE;