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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e0c2a51d337d44ce X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: exit a program Date: Sun, 02 Aug 2009 10:38:08 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1249223889 10217 192.74.137.71 (2 Aug 2009 14:38:09 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 2 Aug 2009 14:38:09 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:sYDNc+SWkGhD9g1V2CJxXnHMsUI= Xref: g2news2.google.com comp.lang.ada:7527 Date: 2009-08-02T10:38:08-04:00 List-Id: asd@fdsfs.com (Autoscontro difettoso) writes: > is there an instruction that stops a program? In GNAT, look at GNAT.OS_Lib. You can call OS_Exit or OS_Abort. In other compilers, you can call "exit" or "abort" via pramga Import. Alternatively, you can abort the environment task. Look at Ada.Task_Identification. If you call Current_Task during library-level elaboration, you can save the identity of the env task. - Bob