fix: cleanup hc daemon scripts

This commit is contained in:
2023-01-06 14:59:55 +01:00
parent f53022b3c8
commit dc68a8a3fd
4 changed files with 12 additions and 27 deletions

View File

@@ -43,6 +43,13 @@ if pid==-1:
process = psutil.Process(pid)
for p in process.children(): #recursive=false
if p.name() in ['zsh','bash']:
# check for ssh #
for sp in p.children(recursive=True):
print(sp.name())
if sp.name() == 'ssh':
print(sp)
subprocess.Popen(shlex.split('urxvt -cd ' + p.cwd()))
break
sys.exit()