Hi,
On 4/6/26 16:13, Didier Kryn wrote:
> With signalfd(), the kernel queues the signals into a pseudofile
> descriptor
It's worth to say that the pseudofile descriptor is linked to the process performing the read() operation,
not always the one that created it. For example, if a process opens a signalfd and then forks a child,
the child inherits the descriptor. However, when the child reads from that, it will receive the signals
intended for the child, not for the parent. And here is where `pidfd` comes into play:
https://www.man7.org/linux/man-pages/man2/pidfd_open.2.html
Cheers,
Aitor.