mirror of
https://github.com/mii443/qemu.git
synced 2025-12-17 01:28:52 +00:00
Revert "Convert atexit users to exit_notifier"
This reverts commit d7234f4d7e.
Conflicts:
hw/xen_machine_pv.c
This should have never been committed.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
3
curses.c
3
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(¬ifier);
|
||||
atexit(curses_atexit);
|
||||
|
||||
#ifndef _WIN32
|
||||
#if defined(SIGWINCH) && defined(KEY_RESIZE)
|
||||
|
||||
Reference in New Issue
Block a user