[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: [Xen-changelog] [xen-unstable] xenstored: Do not write to stderr if we are daemonised!


  • To: John Levon <levon@xxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxxxxxxxx>
  • Date: Wed, 01 Aug 2007 19:12:22 +0100
  • Delivery-date: Wed, 01 Aug 2007 11:10:20 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcfUZ4FWv//U8kBaEdyIPAAX8io7RQ==
  • Thread-topic: [Xen-devel] Re: [Xen-changelog] [xen-unstable] xenstored: Do not write to stderr if we are daemonised!

On 1/8/07 19:03, "John Levon" <levon@xxxxxxxxxxxxxxxxx> 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


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.