Fix sigqueue limit off-by-one, rustfmt.

This commit is contained in:
4lDO2
2026-02-01 13:13:21 +01:00
parent 19c71bba06
commit ebf4c4185a
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ use alloc::vec::Vec;
use core::ffi::CStr;
use core::str::FromStr;
use syscall::CallFlags;
use syscall::data::{GlobalSchemes, KernelSchemeInfo};
use syscall::flag::{O_CLOEXEC, O_RDONLY};
use syscall::CallFlags;
use syscall::{Error, EINTR};
use syscall::{EINTR, Error};
use redox_rt::proc::*;
+3 -3
View File
@@ -6,12 +6,13 @@ use core::str;
use alloc::string::String;
use hashbrown::HashMap;
use redox_initfs::{types::Timespec, InitFs, Inode, InodeDir, InodeKind, InodeStruct};
use redox_initfs::{InitFs, Inode, InodeDir, InodeKind, InodeStruct, types::Timespec};
use redox_path::canonicalize_to_standard;
use redox_scheme::{scheme::SchemeSync, CallerCtx, OpenResult, RequestKind};
use redox_scheme::{CallerCtx, OpenResult, RequestKind, scheme::SchemeSync};
use redox_scheme::{SignalBehavior, Socket};
use syscall::PAGE_SIZE;
use syscall::data::Stat;
use syscall::dirent::DirEntry;
use syscall::dirent::DirentBuf;
@@ -19,7 +20,6 @@ use syscall::dirent::DirentKind;
use syscall::error::*;
use syscall::flag::*;
use syscall::schemev2::NewFdFlags;
use syscall::PAGE_SIZE;
use crate::KernelSchemeMap;
+1 -1
View File
@@ -2297,7 +2297,7 @@ impl<'a> ProcScheme<'a> {
let rtq = target_proc.rtqs.get_mut(rtidx).unwrap();
// TODO(feat): configurable limit?
if rtq.len() > 32 {
if rtq.len() >= 32 {
return SendResult::FullQ;
}