From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.200.24.139 with SMTP id s11mr23154910qtj.52.1509147974637; Fri, 27 Oct 2017 16:46:14 -0700 (PDT) X-Received: by 10.157.94.7 with SMTP id d7mr391961oti.8.1509147974562; Fri, 27 Oct 2017 16:46:14 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.fr7!futter-mich.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!k31no3662127qta.1!news-out.google.com!r5ni2712qtc.1!nntp.google.com!z50no3656372qtj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 27 Oct 2017 16:46:14 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.34.53.181; posting-account=1tLBmgoAAAAfy5sC3GUezzrpVNronPA- NNTP-Posting-Host: 24.34.53.181 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <395bb02e-8e18-4fde-a7e0-a759a219c8ae@googlegroups.com> Subject: Re: alternative for buggy accept_socket to create a non-blocking version From: Matt Borchers Injection-Date: Fri, 27 Oct 2017 23:46:14 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 2788100583 X-Received-Bytes: 1516 Xref: news.eternal-september.org comp.lang.ada:48607 Date: 2017-10-27T16:46:14-07:00 List-Id: The bug I needed to work around was actually in the Check_Selector subprogram. That is in the call path of Accept_Socket with the timeout parameter. So, I actually ended up doing what you suggest, but needed a fixed version of Check_Selector.