From: Jeremy Fitzhardinge Subject: Re: A bug in Xenbus driver Date: Wed, 25 Aug 2010 12:19:42 -0700 Message-ID: <4C756CCE.3060200@goop.org> References: <433DDF91DFB08148BAD3FDB6FDDA314C9F35F3BB47@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <433DDF91DFB08148BAD3FDB6FDDA314C9F35F3BB47@LONPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Jun Zhu (Intern)" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 08/25/2010 11:57 AM, Jun Zhu (Intern) wrote: > This bug makes the read_buffer not be cleared most of the time. If the xenstore client uses PTHREAD to create a thread to receive reply message, the problem will incur. The new thread can not read what it wants to read, since the list is not empty. This still puzzles me. The bug you found means that partially-successful reads will not be reported correctly, but completely successful and completely unsuccessful reads should be OK. So if you're seeing a problem as a result, it still indicates there's something wrong with what you're passing to read(). J