[CRIU] Re: [PATCH 3/4] IPC: restore namespace itself

Pavel Emelyanov xemul at parallels.com
Mon Jan 30 13:04:00 EST 2012


> +static int prepare_ipc_data(int fd)
> +{
> +	int ret;
> +	struct ipc_ns_data ipc;
> +
> +	ret = read_img(fd, &ipc);
> +	if (ret <= 0)
> +		return -EFAULT;
> +	ret = prepare_ipc_tun(&ipc.entry);
> +	if (ret < 0)
> +		return ret;
> +	return 0;

return prepare_ipc_tun(&ipc.entry);

> +}


More information about the CRIU mailing list