| 1571 | } |
| 1572 | |
| 1573 | static bool main_project_lock_manager_close(cbm_project_lock_manager_t **manager) { |
| 1574 | bool ok = true; |
| 1575 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
| 1576 | while (manager && *manager) { |
| 1577 | cbm_private_file_lock_status_t status = cbm_project_lock_manager_free(manager); |
| 1578 | if (status != CBM_PRIVATE_FILE_LOCK_OK) { |
| 1579 | ok = false; |
| 1580 | } |
| 1581 | if (*manager) { |
| 1582 | if (cbm_now_ms() >= deadline) { |
| 1583 | main_coordination_cleanup_fail_stop("project_lock_manager_cleanup"); |
| 1584 | } |
| 1585 | cbm_usleep(1000); |
| 1586 | } |
| 1587 | } |
| 1588 | return ok; |
| 1589 | } |
| 1590 | |
| 1591 | static bool main_local_transition_close(cbm_daemon_ipc_local_transition_t **transition) { |
| 1592 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
no test coverage detected