From: Keir Fraser Subject: Re: Re: [Xen-changelog] [xen-unstable] xenstored: Do not write to stderr if we are daemonised! Date: Wed, 01 Aug 2007 19:12:22 +0100 Message-ID: References: <20070801180323.GA16021@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070801180323.GA16021@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 1/8/07 19:03, "John Levon" wrote: >> + >> + /* Get ourselves a nice xenstored crash if these are used. */ >> + stdin = NULL; >> + stdout = NULL; >> + stderr = NULL; > > You cannot assign to std* on Solaris, this becomes: > > (&__iob[0]) = 0; > (&__iob[1]) = 0; > (&__iob[2]) = 0; > > which obviously won't compile. Okay, I'll fix this by redirecting xprintf() to trace() and get rid of the NULL assignments. -- Keir