aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_core.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-01 19:17:08 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-01 19:17:08 +0100
commit79a18447fe70c67d682bcf585c2234efca25f46a (patch)
tree5910043d684fc863381f3c77a89f262630c5dcbb /tools/xenstore/xenstored_core.c
parent71b66d78933833d09538c903ded167636acf8a59 (diff)
downloadxen-79a18447fe70c67d682bcf585c2234efca25f46a.tar.gz
xen-79a18447fe70c67d682bcf585c2234efca25f46a.tar.bz2
xen-79a18447fe70c67d682bcf585c2234efca25f46a.zip
xenstore: Do not assign to stdout/stderr/stdin - they are not
implemented as variables on all systems. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/xenstored_core.c')
-rw-r--r--tools/xenstore/xenstored_core.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c
index fc3171f14b..a969bcff56 100644
--- a/tools/xenstore/xenstored_core.c
+++ b/tools/xenstore/xenstored_core.c
@@ -1883,11 +1883,7 @@ int main(int argc, char *argv[])
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
-
- /* Get ourselves a nice xenstored crash if these are used. */
- stdin = NULL;
- stdout = NULL;
- stderr = NULL;
+ xprintf = trace; /* xprintf() must not use stderr */
}
signal(SIGHUP, trigger_reopen_log);