]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Require at least one console for LXC domain
authorJán Tomko <jtomko@redhat.com>
Fri, 31 Oct 2014 08:51:23 +0000 (09:51 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 4 Nov 2014 14:07:09 +0000 (15:07 +0100)
commit44686f6523cb30a174c052a242fa15f6a2b364e5
treee0a1376471b6f7cf945041f41104216c932558fa
parent7ead1a5d91a93b5614deeef7b0227bffcea9740d
Require at least one console for LXC domain

A domain without a console quietly dies soon after start,
because we try to set /dev/null as a controlling TTY
2014-10-30 15:10:59.705+0000: 1: error : lxcContainerSetupFDs:283 :
ioctl(TIOCSCTTY) failed: Inappropriate ioctl for device

Report an error early instead of trying to start it.

https://bugzilla.redhat.com/show_bug.cgi?id=1155410
src/lxc/lxc_container.c
src/lxc/lxc_process.c