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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6ee8ca03c176d76 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-15 10:52:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Michael Bode Newsgroups: comp.lang.ada Subject: Re: stupid question: how can I finish a program? Date: 15 Aug 2002 07:14:45 +0200 Organization: Organized? Me? Sender: mb@jupiter.solar.system Message-ID: References: <3D59BB4C.AA21BDA@despammed.com> <5ee5b646.0208141747.1f108e20@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.t-online.com 1029433778 02 29706 PMRkbvQXSyaRf5 020815 17:49:38 X-Complaints-To: abuse@t-online.com X-Sender: 320025674319-0001@t-dialin.net X-message-flag: IMPORTANT MESSAGE -- PLEASE READ IMMEDIATELY!!! X-Accepted-File-Formats: ASCII, .rtf, .ps, .pdf - *NO* MS Office files User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:28064 Date: 2002-08-15T07:14:45+02:00 List-Id: dewar@gnat.com (Robert Dewar) writes: > Seems redundant, just abort the environment task, that's > the simplest suicide model. I had a similar problem, but my programm has a server task which most of the time waits on blocking socket functions (Accept or String'Read from a socket). I tried raising an exception in the main task, killing the server task with abort or the select ... abort construct, but this didn't work. Probably I should't expect this to work. So I just kill the program with Gnat.OS_Lib.OS_Exit. I wonder if there is a way to do this with standard functions.