|
@@ -28,6 +28,7 @@
|
|
|
#include "qemu/option.h"
|
|
|
#include "chardev/char.h"
|
|
|
#include "sysemu/block-backend.h"
|
|
|
+#include "qapi/qapi-commands-control.h"
|
|
|
#include "chardev-internal.h"
|
|
|
|
|
|
/* MUX driver for serial I/O splitting */
|
|
@@ -157,7 +158,7 @@ static int mux_proc_byte(Chardev *chr, MuxChardev *d, int ch)
|
|
|
{
|
|
|
const char *term = "QEMU: Terminated\n\r";
|
|
|
qemu_chr_write_all(chr, (uint8_t *)term, strlen(term));
|
|
|
- exit(0);
|
|
|
+ qmp_quit(NULL);
|
|
|
break;
|
|
|
}
|
|
|
case 's':
|