[Devel] Re: [RFC v14][PATCH 04/54] General infrastructure for checkpoint restart
Serge E. Hallyn
serue at us.ibm.com
Wed Apr 29 10:12:35 PDT 2009
Quoting Oren Laadan (orenl at cs.columbia.edu):
> 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
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list