Sukadev Bhattiprolu wrote: > Subject: [RFC][v8][PATCH 0/10] Implement clone3() system call > > To support application checkpoint/restart, a task must have the same pid it > had when it was checkpointed. When containers are nested, the tasks within > the containers exist in multiple pid namespaces and hence have multiple pids > to specify during restart. > > This patchset implements a new system call, clone3() that lets a process > specify the pids of the child process. > > Patches 1 through 7 are helper patches, needed for choosing a pid for the > child process. > > PATCH 9 defines a prototype of the new system call. PATCH 10 adds some > documentation on the new system call, some/all of which will eventually > go into a man page. > Sorry for jumping so late in the discussion and for having maybe my remarks pointless... If this syscall is only for checkpoint / restart, why this shouldn't be used with a future generic sys_restart syscall ? Otherwise, shouldn't be more convenient to have something usable for everyone, let's say: cloneat(pid_t pid, pid_t desiredpid, ...); Where 'desiredpid' is a hint of for the kernel for the pid to be allocated (zero means the kernel will choose one for us) and the newly allocated task is the son of 'pid'. That looks more consistent with the "<syscall>at" family, 'openat', 'faccessat', 'readlinkat', etc ... and usable for something else than the checkpoint / restart. Thanks -- Daniel _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers