Sujet : Re: OT: Windows (Was: Re: Open Source does not mean easily
De : kalevi (at) *nospam* kolttonen.fi (Kalevi Kolttonen)
Groupes : comp.unix.programmerDate : 06. Jan 2025, 18:53:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlh5ag$1nruu$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : tin/2.6.3-20231224 ("Banff") (Linux/6.12.6-200.fc41.x86_64 (x86_64))
Muttley@dastardlyhq.org wrote:
Unix signals should only be used to set flags that are then read later. Doing
anything complicated in a signal handler is asking for trouble as you have
no idea where the program was when the signal occured and there can be all
sorts of re-entrant issues or even deadlocks if using mutexes.
That is what I have learned, too, but I cannot remember the
source. Maybe one of Richard Stevens' UNIX books.
I am no expert, but I guess if you need to do async programming
on UNIX/Linux userspace, your best is to use POSIX Threads.
br,
KK