improve multiprocessing, wait for complete and handle remtoe moregraceful

This commit is contained in:
Chrys
2019-09-05 23:01:35 +02:00
parent 59c4a2beb4
commit 05165d2868
12 changed files with 94 additions and 78 deletions

View File

@ -23,15 +23,15 @@ class processManager():
def terminateAllProcesses(self):
for proc in self._Processes:
try:
proc.terminate()
except KeyboardInterrupt:
pass
except:
pass
proc.join()
#try:
# proc.terminate()
#except KeyboardInterrupt:
# pass
#except:
# pass
proc.join()
for t in self._Threads:
t.join()
t.join()
def heartBeatTimer(self, active):
try:
time.sleep(0.5)

View File

@ -84,7 +84,7 @@ settingsData = {
'enabled': True,
'driver': 'unixDriver',
'port': 22447,
'socketpath':'/tmp/',
'socketFile':'',
'enableSettingsRemote': True,
'enableCommandRemote': True,
},