[CRIU] [PATCHv4 4/4] crtools: cr_service() and fixes for it

Pavel Emelyanov xemul at parallels.com
Tue Sep 3 14:51:32 EDT 2013


On 09/03/2013 06:44 PM, Ruslan Kuprieiev wrote:
> cr_service() is function to start daemon, that will create unix domain 
> socket and will listen for requests from libcriu on it. If request is 
> obtained, it will fork() child, that will recv, process arguments and 
> dump program.
> 
> +child_err:
> +	ret = CRIU_DUMP_FAIL;
> +child_out:
> +	if (send(client_fd, &ret, sizeof(ret), 0) == -1)
> +		pr_perror("Can't send msg to lib");
> +
> +	close(client_fd);
> +	exit(1);
> +}

Response from service should also be a protobuf message.



More information about the CRIU mailing list