From 4be3cb46d530b1637465167c6a6a661ff0b9466c Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Fri, 11 Oct 2024 15:28:45 -0700 Subject: [PATCH] feat: switch to std::process --- bin/host/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/host/src/lib.rs b/bin/host/src/lib.rs index ae58053e..96985fdf 100644 --- a/bin/host/src/lib.rs +++ b/bin/host/src/lib.rs @@ -23,9 +23,10 @@ use std::{ io::{stderr, stdin, stdout}, os::fd::{AsFd, AsRawFd}, panic::AssertUnwindSafe, + process::Command, sync::Arc, }; -use tokio::{process::Command, sync::RwLock, task}; +use tokio::{sync::RwLock, task}; use tracing::{debug, error, info}; use util::Pipe; @@ -213,7 +214,7 @@ pub async fn start_native_client_program( ]) .expect("No errors may occur when mapping file descriptors."); - let status = command.status().await.map_err(|e| { + let status = command.status().map_err(|e| { error!(target: "client_program", "Failed to execute client program: {:?}", e); anyhow!("Failed to execute client program: {:?}", e) })?;