Files
initrd/src/cmd/init_input.rs

12 lines
308 B
Rust
Raw Normal View History

2024-04-29 12:54:25 +02:00
use crate::input;
pub async fn run() {
tokio::spawn(async {
if let Err(e) = input::forward_requests_from_socket().await {
eprintln!("failed to forwards requests from socket: {e}");
std::process::exit(1);
}
});
input::answer_requests_from_stdin().await;
}