Исправление ошибка cl_client, при которой

cl_sync --login завершал свою работу команой kill


git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@1611 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
mhiretskiy 15 years ago
parent 8624b78a78
commit 7a170df64d

@ -862,6 +862,10 @@ conjunction with the 'login' or 'logout'")
killPid.append(process.split(" ")[0])
if "--login" in process and "cl-sync" in process:
killPid.append(process.split(" ")[0])
strPid = str(os.getpid())
# удалим свой pid из списка завершаемых процессов
if strPid in killPid:
killPid.remove(strPid)
if killPid and " ".join(killPid).strip():
textLine = self.execProg("kill -9 %s" %" ".join(killPid))
if not (textLine == None):

Loading…
Cancel
Save