set_restore_sigmask(9)
β¨ set_restore_sigmask(9) β Kernel API Manual β¨
πΈ NAME πΈ
set_restore_sigmask β make sure saved_sigmask processing gets done β¨
β¨ SYNOPSIS β¨
void set_restore_sigmask (void );
π ARGUMENTS π
voidβ no arguments, like literally none, bestie π
π DESCRIPTION π
This one is giving main character energy for signal masks β¨. It sets TIF_RESTORE_SIGMASK and ensures that the arch signal code will run before returning to user mode, to process the flag. No cap.
Hereβs the tea for all callers β: TIF_SIGPENDING is already set, or itβs no harm to set it. The way that works out is very chill.
Also important: TIF_RESTORE_SIGMASK need not be in the set of bits that the arch code will notice on return to user mode, in case those bits are scarce π. So yeah, it doesnβt have to be noticed there.
We set TIF_SIGPENDING here to ensure that the arch signal code always gets run when TIF_RESTORE_SIGMASK is set. periodt π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/sched/signal.hstructthread_group_cputimer(9)π«Ά
mwah π cute sign-off time: source/version ./include/linux/sched, date October 2026, page set_restore_sigmask(9). bye bestie, slay your signals πβ¨
π¦ 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