SubprocessorBase fix
This commit is contained in:
@@ -94,7 +94,7 @@ class SubprocessorBase(object):
|
|||||||
cq = multiprocessing.Queue()
|
cq = multiprocessing.Queue()
|
||||||
|
|
||||||
client_dict.update ( {'print_lock' : self.print_lock} )
|
client_dict.update ( {'print_lock' : self.print_lock} )
|
||||||
|
try:
|
||||||
p = multiprocessing.Process(target=self.subprocess, args=(sq,cq,client_dict))
|
p = multiprocessing.Process(target=self.subprocess, args=(sq,cq,client_dict))
|
||||||
p.daemon = True
|
p.daemon = True
|
||||||
p.start()
|
p.start()
|
||||||
@@ -106,6 +106,11 @@ class SubprocessorBase(object):
|
|||||||
'name': name,
|
'name': name,
|
||||||
'host_dict' : host_dict
|
'host_dict' : host_dict
|
||||||
} )
|
} )
|
||||||
|
except:
|
||||||
|
print ("Unable to start subprocess %s" % (name))
|
||||||
|
|
||||||
|
if len(self.processes) == 0:
|
||||||
|
raise Exception ("Unable to start Subprocessor '%s' " % (self.name))
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
for p in self.processes[:]:
|
for p in self.processes[:]:
|
||||||
|
|||||||
Reference in New Issue
Block a user