Skip to content

Commit

Permalink
feat: switch to std::process
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Oct 11, 2024
1 parent 38cf22e commit 4be3cb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
})?;
Expand Down

0 comments on commit 4be3cb4

Please sign in to comment.