| 862 | } |
| 863 | |
| 864 | static bool host_background_start(host_state_t *host) { |
| 865 | /* No watcher object when watcher_enabled=false (#335) — nothing to run, and |
| 866 | * the daemon must still come up with its remaining subsystems. */ |
| 867 | if (host->watcher) { |
| 868 | if (cbm_thread_create(&host->watcher_thread, 0, host_watcher_thread, host->watcher) != 0) { |
| 869 | return false; |
| 870 | } |
| 871 | host->watcher_started = true; |
| 872 | } |
| 873 | |
| 874 | host_http_reconcile_at(host, cbm_now_ms(), true); |
| 875 | return true; |
| 876 | } |
| 877 | |
| 878 | static bool host_wait_for_lifetime(cbm_daemon_runtime_service_t *service, |
| 879 | atomic_int *stop_requested, host_state_t *host, bool permanent) { |
no test coverage detected