add fexec error reporting

This commit is contained in:
Red Bear OS
2026-07-11 06:55:34 +03:00
parent 753f76c4f5
commit a3238d9017
+4
View File
@@ -246,6 +246,10 @@ pub fn main() -> ! {
&extrainfo,
None,
)
.map_err(|e| {
let _ = libredox::call::write(1, alloc::format!("fexec_impl failed: {}\n", e).as_bytes());
e
})
.expect("failed to execute init");
// According to elf(5), PT_INTERP requires that the interpreter path be