pub async fn shutdown_for_process_tree(
peers: Arc<Mutex<HashMap<ProcessId, Arc<IpcPeer>>>>,
process_manager: &dyn ProcessManager,
pid: ProcessId,
ack_timeout: Duration,
exit_timeout: Duration,
reason: Option<String>,
) -> Result<GracefulShutdownOutcome, Error>Expand description
Performs a graceful shutdown for the specified process using IPC peers.
This function wraps graceful_shutdown_tree with IPC-based shutdown logic,
allowing shutdown requests to be sent via connected peers.