qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 01/11] Handle terminating signals.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 01/11] Handle terminating signals.
Date: Mon, 11 Aug 2008 21:52:54 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Anthony Liguori wrote:
>> --- a/sdl.c
>> +++ b/sdl.c
>> @@ -476,10 +476,8 @@ static void sdl_refresh(DisplayState *ds)
>>                  sdl_process_key(&ev->key);
>>              break;
>>          case SDL_QUIT:
>> -            if (!no_quit) {
>> +            if (!no_quit)
>>                  qemu_system_shutdown_request();
>> -                vm_start();    /* In case we're paused */
>>   
> 
> I'm curious why this is no longer needed?

To avoid calling vm_start() from the signal handler main_loop() got an
additional check so qemu_system_shutdown_request() works even when the
vm is in stopped state.

[ Hmm, cut&paste -> changelog I guess ... ]

cheers,
  Gerd

-- 
http://kraxel.fedorapeople.org/xenner/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]