From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ewan Mellor Subject: Re: xm shutdown --all --wait and zombie domains Date: Fri, 7 Oct 2005 16:42:38 +0100 Message-ID: <20051007154238.GE13685@uk.xensource.com> References: <623652d50510070831w37939bg@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <623652d50510070831w37939bg@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Oct 07, 2005 at 04:31:08PM +0100, Chris Bainbridge wrote: > At the moment xm shutdown --all --wait hangs with a zombie domain. > This means it hangs xend stop on dom0 shutdown.. I see no use for this > behaviour, it would be better to skip Zombie-Domain-* domains. I agree. The waiting code is in xen/xm/shutdown.py, you just need to check whether the state string returned by the server contains a 'd', and if so, treat it as dead. A patch would be appreciated! Ewan.