Skip to content

Commit 3bc68a4

Browse files
committed
feat: switch to std::process
1 parent 7d22a13 commit 3bc68a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: bin/host/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ use std::{
2323
io::{stderr, stdin, stdout},
2424
os::fd::{AsFd, AsRawFd},
2525
panic::AssertUnwindSafe,
26+
process::Command,
2627
sync::Arc,
2728
};
28-
use tokio::{process::Command, sync::RwLock, task};
29+
use tokio::{sync::RwLock, task};
2930
use tracing::{debug, error, info};
3031
use util::Pipe;
3132

@@ -213,7 +214,7 @@ pub async fn start_native_client_program(
213214
])
214215
.expect("No errors may occur when mapping file descriptors.");
215216

216-
let status = command.status().await.map_err(|e| {
217+
let status = command.status().map_err(|e| {
217218
error!(target: "client_program", "Failed to execute client program: {:?}", e);
218219
anyhow!("Failed to execute client program: {:?}", e)
219220
})?;

0 commit comments

Comments
 (0)