ia64/xen-unstable

changeset 4070:8a0070a6f1b6

bitkeeper revision 1.1159.265.1 (42305f54c1QGh-jqx__ZfFdzrPJWDA)

Make xend parent sleep a bit at start, so when it returns
xend is running.

Signed-off-by: Mike Wray <mike.wray@hp.com>
author mjw@wray-m-3.hpl.hp.com
date Thu Mar 10 14:53:08 2005 +0000 (2005-03-10)
parents 7a898f4725b2
children ee7313088070 2f9077bf40da
files tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Wed Mar 09 02:02:39 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Thu Mar 10 14:53:08 2005 +0000
     1.3 @@ -15,6 +15,7 @@ import pwd
     1.4  import re
     1.5  import StringIO
     1.6  import traceback
     1.7 +import time
     1.8  
     1.9  from twisted.internet import pollreactor
    1.10  pollreactor.install()
    1.11 @@ -516,8 +517,8 @@ class Daemon:
    1.12          self.install_child_reaper()
    1.13  
    1.14          if self.fork_pid(XEND_PID_FILE):
    1.15 -            #Parent
    1.16 -            pass
    1.17 +            #Parent. Sleep to give child time to start.
    1.18 +            time.sleep(1)
    1.19          else:
    1.20              # Child
    1.21              self.tracing(trace)