sys_sigprocmask(9)
π sys_sigprocmask(9) β the Kernel API Manual, section 9, bestie β¨
Okay so bestie, pull up a chair, because this one is literally the "look at your blocked signals and/or change them" syscall π. It lives in the Kernel API Manual, section 9, and no cap, it's giving classic signal-mask energy.
πΈ NAME πΈ
sys_sigprocmask β examine and change blocked signals π
β¨ SYNOPSIS β¨
long sys_sigprocmask (int how , old_sigset_t __user * nset ,
old_sigset_t __user * oset );
Yes queen, three arguments, all spelled out exactly like that β how, nset, oset π
π¦ ARGUMENTS π¦
howβ tells the kernel whether we're adding signals, removing signals, or setting the whole mask outright. Basically the vibe of the operation π₯nsetβ the signals to add or remove β but only if it's non-null, bestie πosetβ the previous value of the signal mask, handed back to you if it's non-null π
π DESCRIPTION π
So here's the tea π: some platforms have their own version of this bad boy with special arguments, and others only support sys_rt_sigprocmask. That's it, that's the whole description β no extra lore, I'm not gonna invent any π
π SEE ALSO π
The kernel file ./kernel/signal.c is the main character here, and it comes with a whole friend group of signal/jobctl/trap icons β¨:
task_set_jobctl_pending(9)task_clear_jobctl_trapping(9)task_clear_jobctl_pending(9)task_participate_group_stop(9)ptrace_trap_notify(9)force_sig_seccomp(9)do_notify_parent_cldstop(9)do_signal_stop(9)do_jobctl_trap(9)do_freezer_trap(9)signal_delivered(9)sys_restart_syscall(9)set_current_blocked(9)sys_rt_sigprocmask(9)sys_rt_sigpending(9)copy_siginfo_to_external32(9)do_sigtimedwait(9)sys_rt_sigtimedwait(9)sys_kill(9)sys_pidfd_send_signal(9)sys_tgkill(9)sys_tkill(9)sys_rt_sigqueueinfo(9)sys_sigpending(9)sys_rt_sigaction(9)sys_rt_sigsuspend(9)
All 27 of them, exactly as listed, no skipping, no cap π«Ά
Heads up, bestie: the man page doesn't promise anything beyond what's written above β so don't go reading extra behaviour into it, mwah π
And that's a wrap, babes π β this page came straight out of ./kernel and it's dated October 2026, so go forth and signal-mask responsibly, iykyk π
β¨π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms