Article View: comp.lang.c
Article #1700Re: Inversion-of-control and dependency-injection in C
From: Tristan Wibberley
Date: Fri, 20 Nov 2026 14:13
Date: Fri, 20 Nov 2026 14:13
28 lines
3136 bytes
3136 bytes
On 17/11/2026 09:00, Ross Finlayson wrote: > I'm under the impression that there's a race-condition where > the process gets a signal while blocked in epoll_wait, then according > to one of two policies, EAGAIN error-handling or re-try, that it > loses the notification, not the packet. The packet is still on > the socket to be read, the notification of it was lost. Perhaps a bit offtopic, but I think this has been understood from before edge-triggering was introduced to Linux with epoll in the first place: one must *always* try the resource in nonblocking manner after processing all notifications. It is the nature of the mode. The error is in your assumptions. -- Tristan Wibberley The message body is Copyright (C) 2026 Tristan Wibberley except citations and quotations noted. All Rights Reserved except that you may, of course, cite it academically giving credit to me, distribute it verbatim as part of a usenet system or its archives, and use it to promote my greatness and general superiority without misrepresentation of my opinions other than my opinion of my greatness and general superiority which you _may_ misrepresent. You definitely MAY NOT train any production AI system with it but you may train experimental AI that will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID:
<11dpkis$37fna$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <11d75i7$spj0$1@dont-email.me> <11d7c8k$173nk$1@dont-email.me> <11d7fbv$1839o$2@dont-email.me> <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com> <11dfgtf$3pj6i$1@raubtier-asyl.eternal-september.org> <dmKdnV8-pPdQ_Gb3nZ2dnZfqnPadnZ2d@giganews.com> <11dfrgp$3te4n$3@dont-email.me> <45-dnT0eC7C5hWH3nZ2dnZfqnPadnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> Newsgroups: comp.lang.c Subject: Re: Inversion-of-control and dependency-injection in C Date: Fri, 20 Nov 2026 14:13:48 +0000 Organization: A noiseless patient Spider Lines: 28 Message-ID: <11dpkis$37fna$2@dont-email.me> References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <11d75i7$spj0$1@dont-email.me> <11d7c8k$173nk$1@dont-email.me> <11d7fbv$1839o$2@dont-email.me> <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com> <11dfgtf$3pj6i$1@raubtier-asyl.eternal-september.org> <dmKdnV8-pPdQ_Gb3nZ2dnZfqnPadnZ2d@giganews.com> <11dfrgp$3te4n$3@dont-email.me> <45-dnT0eC7C5hWH3nZ2dnZfqnPadnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 20 Nov 2026 14:13:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3391210"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/El4NpIbTBs8bN65DOTw66PjilGQYEW5OspQO2DDCgkg=="; posting-host="81c55cb3b1d01a17eb136b8d36eaef7e" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:CB9Fym02k4LpwdCVgVwtI801RtI= sha256:Y7wdLJh7UKJdWY719kZK1sX0B7iLMlZeZ2PgoyU6roU= sha1:a64LRvt9ZGrz4M9BBPMlKZP9iZ8= sha256:AwQvmQ0IcIXl6+g7DRZEYtipsurDUWKVglCjZOEpTkw= Content-Language: en-GB In-Reply-To: <45-dnT0eC7C5hWH3nZ2dnZfqnPadnZ2d@giganews.com>