| 1627 | } |
| 1628 | |
| 1629 | static bool main_project_lock_manager_close(cbm_project_lock_manager_t **manager) { |
| 1630 | bool ok = true; |
| 1631 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
| 1632 | while (manager && *manager) { |
| 1633 | cbm_private_file_lock_status_t status = cbm_project_lock_manager_free(manager); |
| 1634 | if (status != CBM_PRIVATE_FILE_LOCK_OK) { |
| 1635 | ok = false; |
| 1636 | } |
| 1637 | if (*manager) { |
| 1638 | if (cbm_now_ms() >= deadline) { |
| 1639 | main_coordination_cleanup_fail_stop("project_lock_manager_cleanup"); |
| 1640 | } |
| 1641 | cbm_usleep(1000); |
| 1642 | } |
| 1643 | } |
| 1644 | return ok; |
| 1645 | } |
| 1646 | |
| 1647 | static bool main_local_transition_close(cbm_daemon_ipc_local_transition_t **transition) { |
| 1648 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
no test coverage detected