mirror of
https://github.com/ish-app/ish.git
synced 2026-01-25 14:06:40 +00:00
Prevent NUM_SIGS from touching sig_set_
This commit is contained in:
parent
0e642a0995
commit
cd2cff1c04
2
fs/tty.c
2
fs/tty.c
@ -364,7 +364,7 @@ canon_wake:
|
||||
unlock(&tty->lock);
|
||||
|
||||
if (fg_group != 0) {
|
||||
for (int sig = 1; sig <= NUM_SIGS; sig++) {
|
||||
for (int sig = 1; sig < NUM_SIGS; sig++) {
|
||||
if (sigset_has(queue, sig))
|
||||
send_group_signal(fg_group, sig, SIGINFO_NIL);
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ dword_t sys_rt_sigprocmask(dword_t how, addr_t set, addr_t oldset, dword_t size)
|
||||
int_t sys_rt_sigpending(addr_t set_addr);
|
||||
|
||||
static inline sigset_t_ sig_mask(int sig) {
|
||||
assert(sig >= 1 && sig <= NUM_SIGS);
|
||||
assert(sig >= 1 && sig < NUM_SIGS);
|
||||
return 1l << (sig - 1);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user