INNER CODE UNIT · Rust

shutdown

Augani/dory · dory-core/ffi/src/lib.rs:146

    pub fn shutdown(&self) {
        if let Some(handle) = self.task.lock().unwrap().take() {
            handle.abort();
        }
    }
}

impl Drop for DoryDataplane {
    fn drop(&mut self) {
        if let Some(runtime) = self.runtime.lock().unwrap().take() {
            runtime.shutdown_background();
        }
    }
}

/// Start serving docker on `listen_fd` (an already-bound AF_UNIX listener the caller owns and hands
/// over), proxying to the guest `dockerd` reachable at `dockerd_socket_path`. Two worker threads —
/// dev-tool traffic doesn't need more, and idle RSS stays small.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…