Quoting Oren Laadan ([email protected]):
>  asmlinkage long sys_checkpoint(pid_t pid, int fd, unsigned long flags)
>  {
> -     pr_debug("sys_checkpoint not implemented yet\n");
> -     return -ENOSYS;
> +     struct ckpt_ctx *ctx;
> +     int ret;
> +
> +     /* no flags for now */
> +     if (flags)
> +             return -EINVAL;
> +
> +     if (pid == 0)
> +             pid = current->pid;

This uses the global pid, but get_container() later will do
        task = find_task_by_vpid(pid);

-serge
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to