summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils/syncdaemon/gconf.py
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-02-15 10:52:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-15 21:44:43 -0800
commit1569424d1425a2f81c428d3968cd103ab2cad49e (patch)
tree51f2233a8434eaae6068ea93d2be4b5b5497af03 /xlators/features/marker/utils/syncdaemon/gconf.py
parenta68b4ad416970ec0ca710f650f54b87c3b92428e (diff)
syncdaemon: change pidfile handling approach
Signal handling of the python interpreter is a bit messy, so we cannot rely on executing a final clause upon termination. Switch over fcntl lock based pidfile handling which can provide reliable info about status of the process. (Due to aforementioned reason, pidfile as such is not guaranteed to be cleaned up, but lock acquisition is a reliable measure.) Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/gconf.py')
-rw-r--r--xlators/features/marker/utils/syncdaemon/gconf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gconf.py b/xlators/features/marker/utils/syncdaemon/gconf.py
index 7bedce5148a..cec5be0789b 100644
--- a/xlators/features/marker/utils/syncdaemon/gconf.py
+++ b/xlators/features/marker/utils/syncdaemon/gconf.py
@@ -4,6 +4,7 @@ class GConf(object):
ssh_ctl_dir = None
ssh_ctl_args = None
cpid = None
+ permanent_handles = []
@classmethod
def setup_ssh_ctl(cls, ctld):