]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
start: setsid in init task as well
authorTycho Andersen <tycho.andersen@canonical.com>
Fri, 26 Feb 2016 00:04:01 +0000 (17:04 -0700)
committerTycho Andersen <tycho.andersen@canonical.com>
Fri, 26 Feb 2016 00:04:01 +0000 (17:04 -0700)
commit8c9a76651a9f2106d9e8cc853b848060455858e6
tree42bbe44d5ba1b319a963ae4c2f357c87318084c1
parentfa79f0a4e3fc3a99cf806f3076baa640709ba06d
start: setsid in init task as well

If we don't do this, we'll leak the parent's session id to the container,
which maybe doesn't matter, but it still seems better to set it anyway.

Also, it breaks CRIU for containers that don't call setsid themselves.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/start.c