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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a6414d7d26b803ce X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!k26g2000vbp.googlegroups.com!not-for-mail From: =?UTF-8?Q?Tomek_Wa=C5=82kuski?= Newsgroups: comp.lang.ada Subject: Re: Ada and (SIGTERM?) Date: Sat, 8 Aug 2009 10:53:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7c4f9e5c-73a3-40af-a247-c44c858b8742@k26g2000vbp.googlegroups.com> References: <42c9446c-76d2-4c82-abab-fd7c5573d85e@k30g2000yqf.googlegroups.com> <4244cbe7-1655-484b-a376-0237802ab37d@p10g2000prm.googlegroups.com> <103641e8-0738-4b10-b2c6-cbfb53b50d98@d34g2000vbm.googlegroups.com> <52dab4e5-9ee0-4e01-9072-32a95caadb84@j19g2000vbp.googlegroups.com> NNTP-Posting-Host: 79.185.181.228 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1249754016 28389 127.0.0.1 (8 Aug 2009 17:53:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 8 Aug 2009 17:53:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k26g2000vbp.googlegroups.com; posting-host=79.185.181.228; posting-account=Ar5oKAoAAAD4cyp5eTv5CtR88dGtUxxC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.1.2) Gecko/20090803 Fedora/3.5.2-2.fc11 Firefox/3.5.2,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7663 Date: 2009-08-08T10:53:36-07:00 List-Id: On 8 Sie, 17:06, Maciej Sobczak wrote: > If you want to preserve the blocking I/O scheme in your program, you > can break out of Accept_Socket by establishing an artificial > connection to the listening socket. Just pretend to be your own client > and knock to your own door. :-) > When the Accept_Socket returns, check the "quit" flag to decide what > to do next. This flag should be set before establishing this > artificial connection to yourself, so that it is already set up when > Accept_Socket returns. > Done :) Thx Maciej.