From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VahdH-0002Ha-6x for qemu-devel@nongnu.org; Mon, 28 Oct 2013 03:53:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VahdB-0004kZ-85 for qemu-devel@nongnu.org; Mon, 28 Oct 2013 03:53:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VahdA-0004kT-Vx for qemu-devel@nongnu.org; Mon, 28 Oct 2013 03:52:57 -0400 Message-ID: <1382946767.3767.1.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 28 Oct 2013 08:52:47 +0100 In-Reply-To: <33183CC9F5247A488A2544077AF19020815A091D@SZXEMA503-MBS.china.huawei.com> References: <33183CC9F5247A488A2544077AF19020815A091D@SZXEMA503-MBS.china.huawei.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vnc: Fix qemu crash on vnc client disconnection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" Cc: Stefan Hajnoczi , Yanqiangjun , Luonengjun , "qemu-devel@nongnu.org" , "Huangweidong (Hardware)" Hi, > diff --git a/ui/vnc.c b/ui/vnc.c > index 5601cc3..2177704 100644 > --- a/ui/vnc.c > +++ b/ui/vnc.c > @@ -876,7 +876,8 @@ static int find_and_clear_dirty_height(struct VncState *vs, > static int vnc_update_client_sync(VncState *vs, int has_dirty) > { > int ret = vnc_update_client(vs, has_dirty); > - vnc_jobs_join(vs); > + if (ret >= 0) > + vnc_jobs_join(vs); What happens with any running jobs if you skip the jouin call here? cheers, Gerd