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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6ee8ca03c176d76 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-27 15:00:51 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp.flash.net!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!world!news From: Robert A Duff Subject: Re: stupid question: how can I finish a program? Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Tue, 27 Aug 2002 21:59:36 GMT References: <5ee5b646.0208241822.34540e8b@posting.google.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:28463 Date: 2002-08-27T21:59:36+00:00 List-Id: dewar@gnat.com (Robert Dewar) writes: > "Marin D. Condic" wrote in message news:... > > This is a question that seems to come up fairly regularly: "Is there a > > standard way of forcing an Ada program to terminate?" Since the current > > answer is "No" > > No, the current answer is "Yes", you can abort the environment task. No, that doesn't do it. I believe the original poster wants to kill the program (really, the "partition", in Ada terms, or the "process", in OS terms), even if some tasks are in an abort-deferred state. Furthermore, the desire is to skip finalization. Aborting the env task doesn't do that. So I think it's true that Ada has no portable way of doing what was desired. Furthermore, I think it's a reasonable desire, in some rare cases. On the other hand, every OS has such a mechanism, and on most of them it's called "exit". That's portable enough, in practise. - Bob