mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06: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:
parent
365c4243ec
commit
28695489e3
8 changed files with 12 additions and 26 deletions
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue