Liste des Groupes | Revenir à cu programmer |
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.
Les messages affichés proviennent d'usenet.