qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Prevent disk data loss when closing qemu
@ 2012-05-16  7:42 Pavel Dovgaluk
  0 siblings, 0 replies; 8+ messages in thread
From: Pavel Dovgaluk @ 2012-05-16  7:42 UTC (permalink / raw)
  To: 'qemu-devel'

Prevent disk data loss when closing qemu window.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@gmail.com>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vl.c b/vl.c
index 23ab3a3..b6cfd29 100644
--- a/vl.c
+++ b/vl.c
@@ -3650,10 +3650,10 @@ int main(int argc, char **argv, char **envp)
     }
 
     os_setup_post();
+    atexit(bdrv_close_all);
 
     resume_all_vcpus();
     main_loop();
-    bdrv_close_all();
     pause_all_vcpus();
     net_cleanup();
     res_free();

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-24  7:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4fb35a7e.2458b40a.3ed6.649cSMTPIN_ADDED@mx.google.com>
2012-05-16  8:16 ` [Qemu-devel] [PATCH] Prevent disk data loss when closing qemu dunrong huang
2012-05-16 10:16   ` Pavel Dovgaluk
2012-05-22  8:51     ` Kevin Wolf
2012-05-22  9:25       ` Paolo Bonzini
2012-05-23  6:48         ` Pavel Dovgaluk
     [not found]         ` <3123.31610261953$1337755763@news.gmane.org>
2012-05-23  7:03           ` Paolo Bonzini
2012-05-24  7:41             ` Pavel Dovgaluk
2012-05-16  7:42 Pavel Dovgaluk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).