| 1339 | } |
| 1340 | |
| 1341 | static bool main_project_lock_manager_close(cbm_project_lock_manager_t **manager) { |
| 1342 | bool ok = true; |
| 1343 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
| 1344 | while (manager && *manager) { |
| 1345 | cbm_private_file_lock_status_t status = cbm_project_lock_manager_free(manager); |
| 1346 | if (status != CBM_PRIVATE_FILE_LOCK_OK) { |
| 1347 | ok = false; |
| 1348 | } |
| 1349 | if (*manager) { |
| 1350 | if (cbm_now_ms() >= deadline) { |
| 1351 | main_coordination_cleanup_fail_stop("project_lock_manager_cleanup"); |
| 1352 | } |
| 1353 | cbm_usleep(1000); |
| 1354 | } |
| 1355 | } |
| 1356 | return ok; |
| 1357 | } |
| 1358 | |
| 1359 | static bool main_local_transition_close(cbm_daemon_ipc_local_transition_t **transition) { |
| 1360 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
no test coverage detected