Sujet : Re: signal handling issues
De : Muttley (at) *nospam* dastardlyhq.com
Groupes : comp.unix.programmerDate : 02. Feb 2025, 10:45:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vnnesb$kkgs$1@dont-email.me>
References : 1 2 3 4 5
On Sat, 1 Feb 2025 22:06:29 -0000 (UTC)
Lawrence D'Oliveiro <
ldo@nz.invalid> gabbled:
On Fri, 31 Jan 2025 09:15:39 -0000 (UTC), Muttley wrote:
>
All this confusion and complexity is why I always recommend that in a
multithreaded program if you must use signals then all signals should be
blocked with a single thread dedicated to sitting in sigwait() and handling
whatever comes along.
>
Or use signalfd(2) <https://manpages.debian.org/signalfd(2)>.
I never knew about that, very useful! Unfortunately it appears to be linux
only.