From: Muli Ben-Yehuda Subject: Re: Error reporting capabilities for libxc Date: Wed, 27 Sep 2006 00:37:39 +0300 Message-ID: <20060926213739.GE7129@rhun.haifa.ibm.com> References: <20060922203153.GA1805@redhat.com> <1159296001.8847.16.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1159296001.8847.16.camel@basalt.austin.ibm.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: Hollis Blanchard Cc: xen-devel@lists.xensource.com, "Daniel P. Berrange" List-Id: xen-devel@lists.xenproject.org On Tue, Sep 26, 2006 at 01:40:01PM -0500, Hollis Blanchard wrote: > Isn't the whole idea of "get_last_error" racy by design? I guess errno > has the same problem, but I'm not quite clear how it's solved there (a > magic array of errnos that is somehow sized to include all threads?) #define errno (*__errno_location()) I think recent glibc's stash each thread's errno in the thread's local storage rather than using a global array, but haven't checked. Cheers, Muli