bitkeeper revision 1.1159.223.76 (4207b472nHz4nbC_OJgbSmfRVow8XQ)

Don't let xend throw away stderr...
This commit is contained in:
iap10@freefall.cl.cam.ac.uk committed 2005-02-07 18:33:22 +00:00
1 parent d08dd0ac71
commit 6f6dcfb95e
1 file changed
+3 -1
+3 -1
View File
@@ -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.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.