From: Ian Jackson Subject: [PATCH] libxenstore: fix threading bug which cause xend startup hang Date: Fri, 10 Sep 2010 18:36:52 +0100 Message-ID: <19594.27828.30312.620316@mariner.uk.xensource.com> References: <19594.25262.241563.656571@mariner.uk.xensource.com> <19594.25527.652366.155193@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19594.25527.652366.155193@mariner.uk.xensource.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 Ian Jackson writes ("[Xen-devel] [PATCH] libxenstore: fix threading bug which cause xend startup hang"): > While I was investigating this, I noticed that xs_fileno, which is > used by numerous applications to be able to select() waiting for > xenstore watches, always returns -1 and has done so since > 7268:2144de6eabcc "Make libxenstore thread-safe" in October 2008. I was wrong. Gianni has pointed me to the pipe() call which is cleverly hidden by the rather opaque coding style. Ian.