Sujet : Re: signal handling issues
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.programmerDate : 01. Feb 2025, 23:06:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vnm5t5$a2t4$1@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.161 (Chasiv Yar; )
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)>.