Liste des Groupes |
On Tue, 7 Jan 2025 15:35:44 -0000 (UTC)
cross@spitfire.i.gajendra.net (Dan Cross) wibbled:In article <vljgbg$28o6f$1@dont-email.me>, <Muttley@DastardlyHQ.org> wrote:>>[snip]>
>
I have to ask at this point: have you ever written a concurrent
program under Unix? One that used signals? For that matter,
have you ever written a program that used `fork()` and caught a
`SIGCHLD`?
Is that supposed to be a serious question?
Yes.
>The only thing that should ever be done in a child exit handler is a wait*()>
or set a flag.
I think perhaps you should try to write some complex programs in
the Unix environment before making such categorial statement.
Don't be patronising.
I've probably written more unix software in 30 years
than you've had hot dinners including a fully featured telnetd and numerous
other servers for work and play. And in the places I've worked which included
finance/banking, aerospace and government,
the advice was almost always NOT to
use signals in the first place unless there was no choice - eg SIGCHLD - but if
you did then do very little in the handler and nothing that could cause any
re-entrancy issues.
I suspect its you who needs a bit more practice at writing large multi process
and multi threaded applications.
Les messages affichés proviennent d'usenet.