mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Diagnose a failing server, rather than just locking up the whole daemon.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
d529c3d93b
commit
bcf6d372d8
1 file changed
+9
@@ -111,6 +111,7 @@ class XendServers:
|
||||
# check for when all threads have initialized themselves and then
|
||||
# close the status pipe
|
||||
|
||||
retryCount = 0
|
||||
threads_left = True
|
||||
while threads_left:
|
||||
threads_left = False
|
||||
@@ -122,6 +123,14 @@ class XendServers:
|
||||
|
||||
if threads_left:
|
||||
time.sleep(.5)
|
||||
retryCount += 1
|
||||
if retryCount > 60:
|
||||
for server in self.servers:
|
||||
if not server.ready:
|
||||
log.error("Server " +
|
||||
server.__class__.__name__ +
|
||||
" did not initialise!")
|
||||
break
|
||||
|
||||
if status:
|
||||
status.write('0')
|
||||
|
||||