Revert "Convert atexit users to exit_notifier"
This reverts commit d7234f4d7e373a708e1df9ab565a71b71b189025.
Conflicts:
hw/xen_machine_pv.c
This should have never been committed.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/hw/xen_machine_pv.c b/hw/xen_machine_pv.c
index fe7d35c..162f88d 100644
--- a/hw/xen_machine_pv.c
+++ b/hw/xen_machine_pv.c
@@ -42,7 +42,6 @@
CPUState *env;
DriveInfo *dinfo;
int i;
- static Notifier exit_notifier = { .notify = xen_config_cleanup };
/* Initialize a dummy CPU */
if (cpu_model == NULL) {
@@ -106,7 +105,7 @@
}
/* config cleanup hook */
- exit_notifier_add(&exit_notifier);
+ atexit(xen_config_cleanup);
/* setup framebuffer */
xen_init_display(xen_domid);