From: shawn Subject: Re: [patch]Make xend to take care of dead qemu-dm process Date: Wed, 21 May 2008 17:10:22 +0800 Message-ID: <1211361022.2219.37.camel@redfuture-desktop.cn.oracle.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, 2008-05-21 at 08:43 +0100, Keir Fraser wrote: > On 21/5/08 07:33, "shawn" wrote: >=20 > > This patch fix xend as when fatal error happened (e.g. qemu-dm proces= s > > was killed)=20 > > log error meesge then destroy that domain and clean up the process (= no > > zombies) >=20 > Shouldn't you put the domain into crashed state? Then you would do what= ever > the configured action is on crash. yes,that may be a better solution. Do you mean just set the XendDomainInfo._stateSet(DOM_STATE_CRASHED),and let xend take care of the left things? But I can't find =EF=BB=BFDOM_STATE_CRASHED like constant defined,there i= s only =EF=BB=BFDOM_STATE_HALTED,=EF=BB=BFDOM_STATE_RUNNING,etc. So not sur= e this could work... thanks Xiaowei >=20 > -- Keir >=20 >=20