int next_prepared_drive = 1;
initialize_readline ();
+ init_event_handlers ();
memset (&sa, 0, sizeof sa);
sa.sa_handler = SIG_IGN;
sa.sa_handler = user_cancel;
sa.sa_flags = SA_RESTART;
sigaction (SIGINT, &sa, NULL);
+ sigaction (SIGQUIT, &sa, NULL);
guestfs_set_pgroup (g, 1);
}
progress_bar_free (bar);
guestfs_close (g);
+ free_event_handlers ();
exit (EXIT_SUCCESS);
}