Merge pull request #1661 from 0x0916/2017-07-01/fix-set-state-error

start: send state to legacy lxc-monitord state server even if no state clients registered
This commit is contained in:
Christian Brauner 2017-07-01 13:08:35 +02:00 committed by GitHub
commit fe9a13f700

View File

@ -359,6 +359,7 @@ int lxc_set_state(const char *name, struct lxc_handler *handler,
if (lxc_list_empty(&handler->state_clients)) {
TRACE("no state clients registered");
process_unlock();
lxc_monitor_send_state(name, state, handler->lxcpath);
return 0;
}