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:
Ewan Mellor committed 2006-12-04 13:56:27 +00:00
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')
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.