MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / http_api_graceful_shutdown

Function http_api_graceful_shutdown

vmm/src/api/http/mod.rs:455–460  ·  view source on GitHub ↗
(http_handle: HttpApiHandle)

Source from the content-addressed store, hash-verified

453}
454
455pub fn http_api_graceful_shutdown(http_handle: HttpApiHandle) -> Result<()> {
456 let (api_thread, api_shutdown_fd) = http_handle;
457
458 api_shutdown_fd.write(1).unwrap();
459 api_thread.join().map_err(VmmError::ThreadCleanup)?
460}

Callers 1

start_vmmFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected