libvirt/src/lxc
Michal Privoznik aa4619337c lxcDomainShutdownFlags: Cleanup @flags usage
Currently, the @flags usage is a bit unclear at first sight to say the
least. There's no need for such unclear code especially when we can
borrow the working code from qemuDomainShutdownFlags().

In addition, this fixes one bug too. If user requested both
VIR_DOMAIN_SHUTDOWN_INITCTL and VIR_DOMAIN_SHUTDOWN_SIGNAL at the same
time, he is basically saying: 'Use the force Luke! If initctl fails try
sending a signal.' But with the current code we don't do that. If
initctl fails for some reason (e.g. inability to write to /dev/initctl)
we don't try sending any signal but fail immediately. To make things
worse, making a domain shutdown with bare _SIGNAL was working by blind
chance of a @rc variable being placed at correct place on the stack so
its initial value was zero.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2013-12-24 17:36:47 +01:00
..
libvirtd_lxc.aug
lxc_cgroup.c rename virBlkioDeviceWeightPtr to virBlkioDevicePtr 2013-12-12 12:29:59 +00:00
lxc_cgroup.h Auto-detect existing cgroup placement 2013-07-23 22:46:31 +01:00
lxc_conf.c capabilities: add baselabel per sec driver/virt type to secmodel 2013-10-29 07:06:04 -06:00
lxc_conf.h Renamed virDomainEventState to virObjectEventState 2013-12-10 11:35:34 +00:00
lxc_container.c Set the 'container_ttys' env variable for LXC consoles 2013-12-18 11:21:10 +00:00
lxc_container.h LXC: Wire up the virDomainCreate{XML}WithFiles methods 2013-07-18 12:07:51 +01:00
lxc_controller.c Avoid async signal safety problem in glibc's setxid 2013-11-18 15:36:23 +00:00
lxc_domain.c maint: avoid 'const fooPtr' in domain_conf 2013-10-14 14:34:38 -06:00
lxc_domain.h Store a virCgroupPtr instance in virLXCDomainObjPrivatePtr 2013-04-15 17:35:31 +01:00
lxc_driver.c lxcDomainShutdownFlags: Cleanup @flags usage 2013-12-24 17:36:47 +01:00
lxc_driver.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00
lxc_fuse.c Add missing 'return 0;' in stub lxcStartFuse() method impl. 2013-11-18 16:12:39 +00:00
lxc_fuse.h Avoid async signal safety problem in glibc's setxid 2013-11-18 15:36:23 +00:00
lxc_hostdev.c lxc: Make activeUsbHostdevs use locks 2013-07-18 14:16:54 +02:00
lxc_hostdev.h Rename all USB device functions to have a standard name prefix 2013-02-05 19:22:25 +00:00
lxc_monitor_protocol.x Fix generation of systemtap probes for RPC protocols 2013-03-14 12:42:22 +00:00
lxc_monitor.c virLXCMonitorClose: Unlock domain while closing monitor 2013-07-24 17:53:00 +02:00
lxc_monitor.h Fix generation of systemtap probes for RPC protocols 2013-03-14 12:42:22 +00:00
lxc_process.c lxc: return -1 if failed to kill lxc process 2013-12-13 06:02:11 -07:00
lxc_process.h lxc: switch to virCloseCallbacks API 2013-07-18 14:16:54 +02:00
lxc.conf
test_libvirtd_lxc.aug.in