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

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

Path: ...!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:36:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vlip2c$24ccb$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> <4OTeP.44026$vfee.5216@fx45.iad>
Injection-Date: Tue, 07 Jan 2025 09:36:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8c5e3bb50f8ae50dc4390f343511cdc4";
	logging-data="2240907"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Bnouk+zqtgaQGyFIaVkab"
Cancel-Lock: sha1:Mep7wuU/wgGUaha+pUKtETNm+AY=
Bytes: 2296

On Mon, 06 Jan 2025 16:46:56 GMT
scott@slp53.sl.home (Scott Lurndal) wibbled:
>Muttley@DastardlyHQ.org writes:
>>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. 
>
>You're opinion is not widely shared.   Note that the POSIX specification
>carefully notes which interfaces are not signal-safe.

ITYF it is VERY widely shared and having a signal safe API function is only
step 2 - plenty of the functions in the program itself or 3rd party library
functions are probably not re-entrant safe and even if they are, having
code stomp over itself - eg if in the middle of writing a log message then a 
signal is generated which tried to write a log message itself - is a very
poor way to write code.