]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
start: use CLONE_PIDFD
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 May 2019 17:40:23 +0000 (19:40 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 May 2019 17:40:23 +0000 (19:40 +0200)
commit33942046c58fe0d4fb74e4fe2896b03f2cb26898
tree1036e541008fc572087aa3e09de2b671f1dacc5f
parent33258b95fc1573b68b3dfae7a1d41696293b828d
start: use CLONE_PIDFD

Use CLONE_PIDFD when possible.

Note the clone() syscall ignores unknown flags which is usually a design
mistake. However, for us this bug is a feature since we can just pass the flag
along and see whether the kernel has given us a pidfd.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c
src/lxc/start.h