WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] "xm save" trouble -- deadlock?

To: Gerd Knorr <kraxel@xxxxxxx>
Subject: Re: [Xen-devel] "xm save" trouble -- deadlock?
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Wed, 2 Nov 2005 10:28:30 -0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ewan Mellor <ewan@xxxxxxxxxxxxx>
Delivery-date: Wed, 02 Nov 2005 18:25:35 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nHaPpxa3ReuQxLWtmVIH8OOl/HOFKwFNrHeBrHh+/+Cg0ekorKa93w9GSN1AOz1Rv0BeN07IAHZtG+txYA8zReMZun6mBH9i/oyK1NEP0Fz3i/pLDisfJilipiinlZbHpY691vbP0jpPtFCwPhpjDIzwFTJ8VC8F/L9v3bbyz18=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4368A44D.9080105@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <43679B4C.3030804@xxxxxxx> <4367A2AF.2090707@xxxxxxx> <20051101185800.GB21507@xxxxxxxxxxxxxxxxxxxxxx> <4368A44D.9080105@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx



What exactly is the thread shutdown problem here?  Why the timeout is
needed in the first place?

I didn't see an answer on this thread so I'll take a stab.

If you do a select without a timeout and no activity occurs on the file descriptors the thread may have no way of exiting cleanly.

     -Kip
 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel