[libc-commits] [libc] [libc] Implement sigpending (PR #237568)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Wed Nov 4 23:53:23 PST 2026
labath wrote:
> Regarding how it ever worked - probably in environments which already block SIGUSR1 by parent process for some reason?
I guess that must be it, though I find that rather surprising. I would expect that a process is normally started with ~all signals unblocked. I was expecting to find something in POSIX to back that up, but the best I came up with is:
> However, it should be noted that many existing applications wrongly assume that they start with certain signals set to the default action and/or unblocked. In particular, applications written with a simpler signal model that does not include blocking of signals, such as the one in the ISO C standard, may not behave properly if invoked with some signals blocked. Therefore, it is best not to block or ignore signals across execs without explicit reason to do so, and especially not to block signals across execs of arbitrary (not closely cooperating) programs.
https://github.com/llvm/llvm-project/pull/237568
More information about the libc-commits
mailing list