(http_handle: HttpApiHandle)
| 453 | } |
| 454 | |
| 455 | pub 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 | } |