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!r24g2000vbn.googlegroups.com!not-for-mail From: =?UTF-8?Q?Tomek_Wa=C5=82kuski?= Newsgroups: comp.lang.ada Subject: Re: Ada and (SIGTERM?) Date: Thu, 6 Aug 2009 12:30:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <42c9446c-76d2-4c82-abab-fd7c5573d85e@k30g2000yqf.googlegroups.com> <4244cbe7-1655-484b-a376-0237802ab37d@p10g2000prm.googlegroups.com> NNTP-Posting-Host: 83.5.129.69 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1249587033 13799 127.0.0.1 (6 Aug 2009 19:30:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 6 Aug 2009 19:30:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r24g2000vbn.googlegroups.com; posting-host=83.5.129.69; 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:7638 Date: 2009-08-06T12:30:33-07:00 List-Id: Thx for replies, but... what am I doing wrong? protected type Interrupt_Handler is procedure Handler; pragma Attach_Handler (Handler, 15); -- is it correct for SIGTERM? function Quit return Boolean; private Q : Boolean := False; end Interrupt_Handler; protected body Interrupt_Handler is procedure Handler is begin Q := True; end Handler; function Quit return Boolean is begin return Q; end Quit; end Interrupt_Handler; Then... somewhere Interrupt_Handler is declared and loop looks like: while not Quit loop Do_Something; end loop; And... This does not work. What am I missing?