[CRIU] [PATCH] [PATCH 3/4] service: add multireq support
Pavel Emelyanov
xemul at parallels.com
Wed Feb 12 03:00:03 PST 2014
On 02/02/2014 02:55 PM, Ruslan Kuprieiev wrote:
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> +static int cr_service_work(int sk)
> +{
> + CriuReq *msg = 0;
> +
> + if (recv_criu_msg(sk, &msg))
> + return -1;
> +
> + if (msg->type == CRIU_REQ_TYPE__MULTIREQ)
> + return multireq_mode(sk, msg);
By multireq I meant different thing. Not separate request type,
but a flag in the generic request message meaning "don't close
socket after this request, I will send more".
> + else
> + return subworker(sk, msg);
> +}
> +
> int cr_service(bool daemon_mode)
> {
> int server_fd = -1, n;
>
More information about the CRIU
mailing list