[libvirt] [PATCH 05/16] Reset the 'quit' flag in virNetServerRun

Daniel Veillard veillard at redhat.com
Thu Jul 19 08:21:30 UTC 2012


On Wed, Jul 18, 2012 at 05:32:26PM +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> To allow virNetServerRun/virNetServerQuit to be invoked multiple
> times, we must reset the 'quit' flag in virNetServerRun
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/rpc/virnetserver.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
> index 16846c5..257cef7 100644
> --- a/src/rpc/virnetserver.c
> +++ b/src/rpc/virnetserver.c
> @@ -700,6 +700,8 @@ void virNetServerRun(virNetServerPtr srv)
>          goto cleanup;
>  #endif
>  
> +    srv->quit = 0;
> +
>      if (srv->autoShutdownTimeout &&
>          (timerid = virEventAddTimeout(-1,
>                                        virNetServerAutoShutdownTimer,

  ACK, we have the lock there, fine,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list