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!d32g2000yqh.googlegroups.com!not-for-mail From: =?UTF-8?Q?Tomek_Wa=C5=82kuski?= Newsgroups: comp.lang.ada Subject: Re: Ada and (SIGTERM?) Date: Sun, 16 Aug 2009 06:11:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3d68abb8-0f8e-42fc-b576-24c320dd0bbc@d32g2000yqh.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> <7c4f9e5c-73a3-40af-a247-c44c858b8742@k26g2000vbp.googlegroups.com> NNTP-Posting-Host: 83.5.132.32 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1250428299 3462 127.0.0.1 (16 Aug 2009 13:11:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 16 Aug 2009 13:11:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d32g2000yqh.googlegroups.com; posting-host=83.5.132.32; 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:7828 Date: 2009-08-16T06:11:38-07:00 List-Id: Ok, another problem. I have followed your suggestions and I have: - one request manager, - one request queue, - one protected object which provides quit possibility, - some, for this example five, request workers. And... how to quit all of them? I cannot force all workers and manager to look at Quit flag in protected object. If manager is looking at Quit flag it terminates, but worker tasks wait on request queue entry (Ludovic's example). If workers are looking at Quit flag (and manager is not) everything terminates, but I have to fire SIGTERM signal 6 times (when I have 5 workers). And of course I am breaking Accept_Socket.