From: Marc-André Lureau <marcandre.lur...@redhat.com>

Hi,

The monitor is being used atexit, during spice audio clean up, and
this leads to a crash since the chardev are now being cleaned up at
the end of main, before atexit handlers.

Fix the crash by cleaning up the monitor when leaving, and restore the
original event behaviour when leaving by cleaning up audio before
that.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1355704

Marc-André Lureau (2):
  monitor: fix crash when leaving qemu with spice audio
  audio: clean up before monitor clean up

 monitor.c                 | 20 ++++++++++++++++++++
 audio/audio.c             | 26 ++++++++++++++++++--------
 audio/audio.h             |  3 +++
 audio/coreaudio.c         | 12 ++----------
 include/monitor/monitor.h |  1 +
 vl.c                      |  2 ++
 6 files changed, 46 insertions(+), 18 deletions(-)

-- 
2.9.0


Reply via email to