direct-io.hg

changeset 12183:f61dcd518cd6

[XEND] Open xend-debug.log in append mode.
Signed-off-by: John Levon <john.levon@sun.com>
author kfraser@localhost.localdomain
date Wed Oct 25 10:27:03 2006 +0100 (2006-10-25)
parents 0471272a5de2
children 09aa7ed2431f
files tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Mon Oct 23 12:43:32 2006 +0100
     1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Wed Oct 25 10:27:03 2006 +0100
     1.3 @@ -106,12 +106,12 @@ class Daemon:
     1.4          os.close(2)
     1.5          if XEND_DEBUG:
     1.6              os.open('/dev/null', os.O_RDONLY)
     1.7 -            os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT)
     1.8 +            os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
     1.9              os.dup(1)
    1.10          else:
    1.11              os.open('/dev/null', os.O_RDWR)
    1.12              os.dup(0)
    1.13 -            os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT)
    1.14 +            os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
    1.15  
    1.16          
    1.17      def start(self, trace=0):