From 821380613075ac91410644cb9fed900ab6a1df61 Mon Sep 17 00:00:00 2001 From: namilsk Date: Sat, 10 Jan 2026 22:30:03 +0300 Subject: Fixed some security issues, `.wait()?` call for `udev`. Fixed one panic-possibility and started implementing killing zombie-processes funtional --- init/src/processes/udev.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'init/src/processes') diff --git a/init/src/processes/udev.rs b/init/src/processes/udev.rs index 7cb6a5d..9979f30 100644 --- a/init/src/processes/udev.rs +++ b/init/src/processes/udev.rs @@ -15,12 +15,10 @@ pub fn spawn_udev() -> Result<(), Box> { "udevd not found in standard locations".into() })?; - let mut child = Command::new(udevd_path).arg("--daemon").spawn().map_err( + Command::new(udevd_path).arg("--daemon").spawn().map_err( |e| -> Box { format!("Failed to spawn udevd: {}", e).into() }, )?; - child.wait()?; - Command::new(udevd_path).arg("--trigger").output().map_err( |e| -> Box { format!("Failed to trigger udev: {}", e).into() }, )?; -- cgit v1.2.3