| 824 | } |
| 825 | |
| 826 | static bool host_background_start(host_state_t *host) { |
| 827 | if (cbm_thread_create(&host->watcher_thread, 0, host_watcher_thread, host->watcher) != 0) { |
| 828 | return false; |
| 829 | } |
| 830 | host->watcher_started = true; |
| 831 | |
| 832 | host_http_reconcile_at(host, cbm_now_ms(), true); |
| 833 | return true; |
| 834 | } |
| 835 | |
| 836 | static bool host_wait_for_lifetime(cbm_daemon_runtime_service_t *service, |
| 837 | atomic_int *stop_requested, host_state_t *host, bool permanent) { |
no test coverage detected