[CRIU] [PATCH 2/7] service: Pull whole connection till service class init

Pavel Emelyanov xemul at parallels.com
Thu Oct 22 05:45:34 PDT 2015


For symmetry with the iters part.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 phaul/p_haul_service.py | 6 +++---
 phaul/xem_rpc.py        | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/phaul/p_haul_service.py b/phaul/p_haul_service.py
index 11883a6..b90f1d7 100644
--- a/phaul/p_haul_service.py
+++ b/phaul/p_haul_service.py
@@ -10,10 +10,10 @@ import criu_req
 import p_haul_type
 
 class phaul_service:
-	def __init__(self, mem_sk, fs_sk):
+	def __init__(self, connection):
 		self.criu_connection = None
-		self._mem_sk = mem_sk
-		self._fs_sk = fs_sk
+		self._mem_sk = connection.mem_sk
+		self._fs_sk = connection.fs_sk
 		self.img = None
 		self.htype = None
 		self.__fs_receiver = None
diff --git a/phaul/xem_rpc.py b/phaul/xem_rpc.py
index 345e250..6429cc7 100644
--- a/phaul/xem_rpc.py
+++ b/phaul/xem_rpc.py
@@ -83,7 +83,7 @@ class _rpc_server_manager:
 		self._poll_list.remove(item)
 
 	def make_master(self):
-		return self._srv_class(self._connection.mem_sk, self._connection.fs_sk)
+		return self._srv_class(self._connection)
 
 	def stop(self):
 		self._alive = False
-- 
1.9.3




More information about the CRIU mailing list