Deutsch   English   Français   Italiano  
<vlip3f$24ci8$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastardlyHQ.org
Newsgroups: comp.unix.programmer
Subject: Re: OT: Windows (Was: Re: Open Source does not mean easily
Date: Tue, 7 Jan 2025 08:37:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vlip3f$24ci8$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <vlecm0$1465i$1@dont-email.me> <vlesf3$1ck$1@reader2.panix.com> <vlg4mb$1hi6d$1@dont-email.me> <vlgo5c$cig$1@reader2.panix.com> <vlgots$1le5s$1@dont-email.me> <1jSeP.17355$jUJ9.3923@fx08.iad> <vlgud7$1mgh5$1@dont-email.me> <vlh5ag$1nruu$1@dont-email.me>
Injection-Date: Tue, 07 Jan 2025 09:37:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8c5e3bb50f8ae50dc4390f343511cdc4";
	logging-data="2241096"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+adB3ZkIV0hLDCSr5aEGGH"
Cancel-Lock: sha1:Q9Vs0f3ope5pi1T4kXjPuwnOf38=
Bytes: 1807

On Mon, 6 Jan 2025 17:53:20 -0000 (UTC)
kalevi@kolttonen.fi (Kalevi Kolttonen) wibbled:
>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.

Agreed.