From e148be2296c0356351fae8c5a6edcd29f2aa3d94 Mon Sep 17 00:00:00 2001 From: elle Date: Mon, 8 Sep 2025 20:21:16 +0000 Subject: [PATCH] redox-rt: remove unused code from `proc` --- redox-rt/src/proc.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/redox-rt/src/proc.rs b/redox-rt/src/proc.rs index 058f8bccf1..1c7fef24f5 100644 --- a/redox-rt/src/proc.rs +++ b/redox-rt/src/proc.rs @@ -8,7 +8,7 @@ use crate::{ arch::*, auxv_defs::*, protocol::{ProcCall, ThreadCall}, - read_proc_meta, static_proc_info, + read_proc_meta, sys::{proc_call, thread_call}, RtTcb, StaticProcInfo, DYNAMIC_PROC_INFO, }; @@ -30,8 +30,8 @@ use goblin::elf64::{ use syscall::{ error::*, flag::{MapFlags, SEEK_SET}, - CallFlags, GrantDesc, GrantFlags, Map, ProcSchemeAttrs, SetSighandlerData, MAP_FIXED_NOREPLACE, - MAP_SHARED, O_CLOEXEC, PAGE_SIZE, PROT_EXEC, PROT_READ, PROT_WRITE, + CallFlags, GrantDesc, GrantFlags, Map, SetSighandlerData, MAP_FIXED_NOREPLACE, MAP_SHARED, + PAGE_SIZE, PROT_EXEC, PROT_READ, PROT_WRITE, }; pub enum FexecResult { @@ -902,7 +902,7 @@ pub fn fork_inner(initial_rsp: *mut usize, args: &ForkArgs) -> Result { Ok(new_pid) } -struct NewChildProc { +pub struct NewChildProc { proc_fd: Option, thr_fd: FdGuard,