From 2a6de14e22445fc3017c9aa25b9c56bc4259d373 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 12 Jul 2011 22:18:58 +0200 Subject: gsyncd: exit in slave when RePCe session came to an end Change-Id: I4317e60fce3280c45dbcc4a5f233a4344aba9500 BUG: 2778 Reviewed-on: http://review.gluster.com/83 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/marker/utils/syncdaemon/resource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/marker/utils/syncdaemon/resource.py') diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index 1e1364c2671..09839f09ea6 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -195,7 +195,8 @@ class SlaveLocal(object): def service_loop(self): repce = RepceServer(self.server, sys.stdin, sys.stdout, int(gconf.sync_jobs)) - t = syncdutils.Thread(target=repce.service_loop) + t = syncdutils.Thread(target=lambda: (repce.service_loop(), + syncdutils.finalize())) t.start() logging.info("slave listening") if gconf.timeout and int(gconf.timeout) > 0: -- cgit