summaryrefslogtreecommitdiff
path: root/init/src/processes/udev.rs
diff options
context:
space:
mode:
authornamilsk <namilsk@namilsk.tech>2026-01-10 22:30:03 +0300
committernamilsk <namilsk@namilsk.tech>2026-01-10 22:30:03 +0300
commit821380613075ac91410644cb9fed900ab6a1df61 (patch)
tree959cbb84acc9e0e592652483eeac73788ef366a9 /init/src/processes/udev.rs
parentdf2a2b696d5fa70b630779940aed7a3ee33eaee8 (diff)
Fixed some security issues, `.wait()?` call for `udev`. Fixed one panic-possibility and started implementing killing zombie-processes funtional
Diffstat (limited to 'init/src/processes/udev.rs')
-rw-r--r--init/src/processes/udev.rs4
1 files changed, 1 insertions, 3 deletions
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<dyn std::error::Error>> {
"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<dyn std::error::Error> { format!("Failed to spawn udevd: {}", e).into() },
)?;
- child.wait()?;
-
Command::new(udevd_path).arg("--trigger").output().map_err(
|e| -> Box<dyn std::error::Error> { format!("Failed to trigger udev: {}", e).into() },
)?;