From fd3a9f9a947366d265cd381b3f43fa763641e0da Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Sun, 30 Mar 2025 01:13:38 +0100 Subject: [PATCH] Add stub for kill and sigq. --- src/exec.rs | 2 +- src/procmgr.rs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/exec.rs b/src/exec.rs index bbb012eb2f..12e720e140 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -34,7 +34,7 @@ pub fn main() -> ! { FdGuard::new(syscall::dup(*auth, b"cur-context").expect("failed to open open_via_dup")); let this_thr_fd = unsafe { redox_rt::initialize_freestanding(this_thr_fd) }; - log::set_max_level(log::LevelFilter::Trace); + log::set_max_level(log::LevelFilter::Debug); let _ = log::set_logger(&Logger); let envs = { diff --git a/src/procmgr.rs b/src/procmgr.rs index 152855f1bf..84142fa34d 100644 --- a/src/procmgr.rs +++ b/src/procmgr.rs @@ -716,6 +716,14 @@ impl<'a> ProcScheme<'a> { self.on_setresugid(fd_pid, payload).map(|()| 0), op, )), + ProcCall::Kill => { + log::error!("KILL STUB"); + Ready(Response::ok(0, op)) + } + ProcCall::Sigq => { + log::error!("SIGQ STUB"); + Ready(Response::ok(0, op)) + } } } }