From 3008990e4dbe0822d60454747e2472784d5e8e80 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 29 Jun 2009 09:09:56 +0000 Subject: [PATCH] bugfix when binding tunnels --- ereshkigal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereshkigal.py b/ereshkigal.py index 6c3b053..51a64c5 100644 --- a/ereshkigal.py +++ b/ereshkigal.py @@ -240,7 +240,7 @@ class AutoSSHTunnelMonitor(list): """Bind autossh process to the related ssh connections, according to the pid""" for t in tunnels: for i in autosshs: - if i['pid'] == ppid: + if i['pid'] == t['autossh_pid']: # add to the list of tunnels of the AutoSSHInstance instance i['tunnels'] += [t]