summaryrefslogtreecommitdiff
path: root/softmmu/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'softmmu/main.c')
-rw-r--r--softmmu/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/softmmu/main.c b/softmmu/main.c
index c00432ff09..1b675a8c03 100644
--- a/softmmu/main.c
+++ b/softmmu/main.c
@@ -32,11 +32,13 @@
int qemu_main(int argc, char **argv, char **envp)
{
+ int status;
+
qemu_init(argc, argv, envp);
- qemu_main_loop();
+ status = qemu_main_loop();
qemu_cleanup();
- return 0;
+ return status;
}
#ifndef CONFIG_COCOA