Deutsch English Français Italiano |
<vljmc6$29tkd$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 16:56:38 -0000 (UTC) Organization: A noiseless patient Spider Lines: 46 Message-ID: <vljmc6$29tkd$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <vlioum$24bqm$1@dont-email.me> <vljcq9$sis$1@reader2.panix.com> <vljg72$28nj0$1@dont-email.me> <vljj7b$g76$1@reader2.panix.com> Injection-Date: Tue, 07 Jan 2025 17:56:38 +0100 (CET) Injection-Info: dont-email.me; posting-host="8c5e3bb50f8ae50dc4390f343511cdc4"; logging-data="2422413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/HcFVUrmkfgtaJw52V8He" Cancel-Lock: sha1:s1LsyWksFNWoJ8kW30jQx45Wx18= Bytes: 2906 On Tue, 7 Jan 2025 16:02:51 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) wibbled: >In article <vljg72$28nj0$1@dont-email.me>, <Muttley@DastardlyHQ.org> wrote: >>On Tue, 7 Jan 2025 14:13:29 -0000 (UTC) >>cross@spitfire.i.gajendra.net (Dan Cross) wibbled: >>>This is conflating multiple things. Most IO operations dealing >>>with the actual hardware _are_ asynchronous (this is what >>>McIlroy meant in the quote I posted earlier). The system call >>>interface gives the program the illusion of those happening >>>sequentially, but that's not how the devices really work. >> >>And? By your definition its still asynchronous programming. > >In the kernel, it sure is. Unix programmers have been writing >asynchronous programs (using e.g. `fork`) since 1970. Thats not what we're discussion here and you know it. >>Please don't just make stuff up. > >Hmm. I wonder what shell you use, if you use Unix at all. Stupid comments really are your forte arn't they. >Here for example is the signal handler for SIGINT in bash: >https://git.savannah.gnu.org/cgit/bash.git/tree/sig.c?h=devel#n691 Basically sets flags. >Here's the SIGWINCH handler for good 'ol `script` from >OpenBSD: >https://github.com/openbsd/src/blob/6d253f95424ee0054c798f493d12377911cd3668/us >r.bin/script/script.c#L224 Not a clever way to do it because an xterm and other terminal progs can indirectly cause a whole load of SIGWINCH to be created if someone is resizing it and only the final one really needs the ioctl call done. Better to set a flag then manually do a call when appropriate. >Those are just a few examples. If one cares to look, one will >find many more in non-trivial programs used in production daily. There are always exceptions to every rule. You seem to be so desperate to win this argument I can only assume your fragile ego has been burst by someone having the temerity to disagree with you. Tough, suck it up.