[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Prevent disk data loss when closing qemu
From: |
Pavel Dovgaluk |
Subject: |
Re: [Qemu-devel] [PATCH] Prevent disk data loss when closing qemu |
Date: |
Thu, 24 May 2012 11:41:58 +0400 |
> From: Paolo Bonzini [mailto:address@hidden On Behalf Of Paolo Bonzini
> Il 23/05/2012 08:48, Pavel Dovgaluk ha scritto:
> >>> > > I'm not against your patch and it's probably 1.1 material, but there
> >>> > > may
> >>> > > be more shutdown logic that we're missing if you close the console
> >>> > > window.
> >> >
> >> > Looks like qemu_ctrl_handler (in os-win32.c) needs to do something like
> >> > termsig_handler (in os-posix.c) instead of a plain exit.
> > I tried to call qemu_system_shutdown_request() instead of exit() there,
> > but Windows kills
> qemu
> > before it finishes cleanup work.
>
> Uff...
> http://stackoverflow.com/questions/3640633/c-setconsolectrlhandler-routine-issue
> says more or less what you have to do.
Thank you!
I have prepared another patch based on this information.
Pavel Dovgaluk