]> git.ipfire.org Git - thirdparty/lxc.git/commit
start: send state to legacy lxc-monitord state server even if no state clients registered 1661/head
author0x0916 <w@laoqinren.net>
Sat, 1 Jul 2017 05:44:41 +0000 (13:44 +0800)
committer0x0916 <w@laoqinren.net>
Sat, 1 Jul 2017 10:07:02 +0000 (18:07 +0800)
commit65ee1673f6592bc00ae41c8f5300aab8a7c67f07
tree15a25d80dcd44aa76d00bc8663f1655f4050b288
parent066e9fe8b5e788d60bc0259efd5197fc27e00a8d
start: send state to legacy lxc-monitord state server even if no state clients registered

This pr https://github.com/lxc/lxc/pull/1618 kill lxc-monitord, for backwards compatibility,
we also send state to legacy lxc-monitord state server in function `lxc_set_state`.

we should also send state if there is no state clients registered, otherwise `lxc-monitor` client will
not get state change event if container changed state to `STARTING` or `RUNNING`.

Signed-off-by: 0x0916 <w@laoqinren.net>
src/lxc/start.c