]> git.ipfire.org Git - thirdparty/lxc.git/commit
let lxc-monitor command ask a lxc-monitord instance to quit
authorDwight Engen <dwight.engen@oracle.com>
Fri, 6 Dec 2013 20:36:50 +0000 (15:36 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 6 Dec 2013 21:03:23 +0000 (16:03 -0500)
commit2afd1dc05ba38eacdfe5a9c79addaf3a7d182dbf
tree7e4189fb93799ad2b972011778055009e25d5a1b
parent84c92abdd1c59de02f446e02ff7fd3e1d70b4811
let lxc-monitor command ask a lxc-monitord instance to quit

Once lxc-monitord receives a quit request from lxc-monitor, it will then
return from the mainloop every time an event occurs on any of its fds and
check if it has any clients left. When there are no more it exits. This
allows lxc-monitord to quit immediately instead of waiting the normal 30
seconds for more clients, potentially freeing up lxcpath for unmounting.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
doc/lxc-monitor.sgml.in
src/lxc/lxc_monitor.c
src/lxc/lxc_monitord.c