[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!



> Okay, I'll fix this by redirecting xprintf() to trace() and get rid of the
> NULL assignments.

You are guaranteed to be able to freopen() stdin/stdout/stderr and that
is a portable C feature. This means you can divert the stdin/out/err to a
log file to catch such accidents or at least avoid future problems by
firing them down /dev/null.


_______________________________________________
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®.