mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
This commit is contained in:
1 parent
06f98ccd35
commit
59f0cea86a
1 file changed
+3
-2
@@ -15,6 +15,7 @@ import pwd
|
||||
import re
|
||||
import StringIO
|
||||
import traceback
|
||||
import time
|
||||
|
||||
from twisted.internet import pollreactor
|
||||
pollreactor.install()
|
||||
@@ -516,8 +517,8 @@ class Daemon:
|
||||
self.install_child_reaper()
|
||||
|
||||
if self.fork_pid(XEND_PID_FILE):
|
||||
#Parent
|
||||
pass
|
||||
#Parent. Sleep to give child time to start.
|
||||
time.sleep(1)
|
||||
else:
|
||||
# Child
|
||||
self.tracing(trace)
|
||||
|
||||