mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
bitkeeper revision 1.1159.223.76 (4207b472nHz4nbC_OJgbSmfRVow8XQ)
Don't let xend throw away stderr...
This commit is contained in:
1 parent
d08dd0ac71
commit
6f6dcfb95e
1 file changed
+3
-1
@@ -484,10 +484,12 @@ class Daemon:
|
||||
# XXX KAF: Why doesn't this capture output from C extensions that
|
||||
# fprintf(stdout) or fprintf(stderr) ??
|
||||
os.open('/var/log/xend-debug.log', os.O_WRONLY|os.O_CREAT)
|
||||
os.dup(1)
|
||||
else:
|
||||
os.open('/dev/null', os.O_RDWR)
|
||||
os.dup(0)
|
||||
os.dup(1)
|
||||
os.open('/var/log/xend-debug.log', os.O_WRONLY|os.O_CREAT)
|
||||
|
||||
|
||||
def start(self, trace=0):
|
||||
"""Attempts to start the daemons.
|
||||
|
||||