[CRIU] [PATCH 6/6] pycriu: add criu class

Pavel Emelyanov xemul at parallels.com
Thu Oct 15 04:38:38 PDT 2015


> +class criu:
> +	"""
> +	Call criu through RPC.
> +	"""
> +	opts		= None #CRIU options in pb format
> +
> +	_comm		= None #Communication method
> +
> +	def __init__(self):
> +		self.use_binary('criu')
> +		self.opts = rpc.criu_opts()

So default opts are always to be used, right? How can caller change them?

> +
> +	def use_sk(self, sk_name):
> +		"""
> +		Access criu using unix socket which that belongs to criu service daemon.
> +		"""
> +		self._comm = _criu_comm_sk(sk_name)
> +



More information about the CRIU mailing list