Sujet : Re: OT: Windows (Was: Re: Open Source does not mean easily
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.unix.programmerDate : 06. Jan 2025, 16:55:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlgud7$1mgh5$1@dont-email.me>
References : 1 2 3 4 5 6 7
On Mon, 06 Jan 2025 15:05:33 GMT
scott@slp53.sl.home (Scott Lurndal) wibbled:
Muttley@DastardlyHQ.org writes:
In Windows yes, which frankly is probably not a coincidence. Not so much
in unix unless you're writing a GUI program.
>
ASTs and unix signals have similar semantics. It's certainly possible to
use, for example, SIGIO in a similar manner to the VMS AST, where the
AST signals I/O completion and the AST handler initiates a subsequent
operation.
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.