lxc: Don't make container's TTY a controlling TTY
lxc: Don't make container's TTY a controlling TTY

Userspace does not expect that the initial console
is a controlling TTY. systemd can deal with that, others not.
On sysv init distros getty will fail to spawn a controlling on
/dev/console or /dev/tty1. Which will cause to whole container
to reboot upon ctrl-c.

This patch changes the behavior of libvirt to match the kernel
behavior where the initial TTY is also not controlling.

The only user visible change should be that a container with
bash as PID 1 would complain. But this matches exactly the kernel
be behavior with init=/bin/bash.
To get a controlling TTY for bash just run "setsid /bin/bash".

Signed-off-by: Richard Weinberger <320bca71fc381a4a025636043ca86e734e31cf8b@nod.at>

olafhering/libvirt,taget/libvirt,datto/libvirt,nertpinx/libvirt,crobinso/libvirt,VenkatDatta/libvirt,eskultety/libvirt,taget/libvirt,datto/libvirt,rlaager/libvirt,andreabolognani/libvirt,zippy2/libvirt,datto/libvirt,libvirt/libvirt,andreabolognani/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,datto/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,taget/libvirt,andreabolognani/libvirt,taget/libvirt,zippy2/libvirt,fabianfreyer/libvirt,rlaager/libvirt,eskultety/libvirt,taget/libvirt,andreabolognani/libvirt,rlaager/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,VenkatDatta/libvirt,eskultety/libvirt,VenkatDatta/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,eskultety/libvirt,crobinso/libvirt,jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,crobinso/libvirt,jardasgit/libvirt,rlaager/libvirt,rlaager/libvirt,zippy2/libvirt,libvirt/libvirt,andreabolognani/libvirt,jardasgit/libvirt,datto/libvirt,jfehlig/libvirt,jardasgit/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,libvirt/libvirt,nertpinx/libvirt,olafhering/libvirt