aboutsummaryrefslogtreecommitdiff
path: root/curses.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-03-21 14:13:02 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-21 14:13:02 -0500
commit28695489e392e2bd34cf4ccf8611d431808e084c (patch)
tree8edbda8b30cb4bbbd4636c1c9dbb8c6ecead181a /curses.c
parent365c4243ecdd0eb2372ce4a5bb20ded77c755c1d (diff)
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>
Diffstat (limited to 'curses.c')
-rw-r--r--curses.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/curses.c b/curses.c
index 44ab1a52c9..b78c4689cb 100644
--- a/curses.c
+++ b/curses.c
@@ -333,7 +333,6 @@ static void curses_keyboard_setup(void)
void curses_display_init(DisplayState *ds, int full_screen)
{
DisplayChangeListener *dcl;
- static Notifier notifier = { .notify = curses_atexit };
#ifndef _WIN32
if (!isatty(1)) {
fprintf(stderr, "We need a terminal output\n");
@@ -343,7 +342,7 @@ void curses_display_init(DisplayState *ds, int full_screen)
curses_setup();
curses_keyboard_setup();
- exit_notifier_add(&notifier);
+ atexit(curses_atexit);
#ifndef _WIN32
#if defined(SIGWINCH) && defined(KEY_RESIZE)