MCPcopy Create free account
hub / github.com/GCWing/BitFun / perform_process_exit_cleanup

Function perform_process_exit_cleanup

src/apps/desktop/src/lib.rs:1563–1579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1561}
1562
1563pub(crate) fn perform_process_exit_cleanup() -> bool {
1564 static CLEANUP_DONE: AtomicBool = AtomicBool::new(false);
1565
1566 if CLEANUP_DONE
1567 .compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst)
1568 .is_err()
1569 {
1570 return false;
1571 }
1572
1573 if let Some(search_service) = get_global_workspace_search_service() {
1574 search_service.shutdown_blocking();
1575 }
1576 bitfun_core::util::process_manager::cleanup_all_processes();
1577 api::remote_connect_api::cleanup_on_exit();
1578 true
1579}
1580
1581fn configure_workspace_search_daemon_env() -> Option<std::path::PathBuf> {
1582 let path = bitfun_core::service::search::resolve_workspace_search_daemon_program_path();

Callers 5

setup_trayFunction · 0.85
runFunction · 0.85
setup_panic_hookFunction · 0.85
quit_appFunction · 0.85
startup_window_controlFunction · 0.85

Calls 4

cleanup_all_processesFunction · 0.85
cleanup_on_exitFunction · 0.85
shutdown_blockingMethod · 0.45

Tested by

no test coverage detected