1
0
Fork 0
forked from wry/wry

all: simplify handling of Errno values

This commit is contained in:
Julian Orth 2026-04-02 18:34:12 +02:00
parent 9c605df692
commit 34914eccb0
58 changed files with 443 additions and 464 deletions

View file

@ -6,7 +6,7 @@ use {
utils::{
clone3::{Forked, fork_with_pidfd},
errorfmt::ErrorFmt,
oserror::OsError,
oserror::OsErrorExt,
pipe::{Pipe, pipe},
},
wire::{JayReexecId, jay_reexec::*},
@ -118,8 +118,8 @@ impl JayReexecRequestHandler for JayReexec {
args2.push(&**arg);
}
let _drop_after_exec = self.delay_close_input_fd();
if let Err(e) = uapi::execvp(req.path, &args2) {
self.send_failed(&OsError(e.0).to_string());
if let Err(e) = uapi::execvp(req.path, &args2).to_os_error() {
self.send_failed(&e.to_string());
}
Ok(())
}