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-28 14:15:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.easynews.com!easynews.com!easynews!ps01-sjc1!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.spamkiller.net!propagator-la!news-in.superfeed.net!news-in-la.newsfeeds.com!newsfeed.onecall.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: stupid question: how can I finish a program? Date: 28 Aug 2002 16:15:23 -0600 Organization: LJK Software Message-ID: References: <5ee5b646.0208241822.34540e8b@posting.google.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1030568243 29402 192.135.80.34 (28 Aug 2002 20:57:23 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 28 Aug 2002 20:57:23 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:28527 Date: 2002-08-28T16:15:23-06:00 List-Id: In article , "Marin D. Condic" writes: > There can't be *that* many different ways of killing the process that a > reasonable compromise answer couldn't be found. What more would be needed > than a "Kill_The_Process (Optional_Integer_Return_Code_For_Unix_Freaks) ;" > call? Would it need to be dramatically different between Unix/Windows/Mac? > Would anyone care if it couldn't be implemented easily on some obscure OS? As I recall, you had some VMS background, so VMS is not "obscure" :-) 1. With what error code should one exit (odd numbers mean success) ? 2. Do you want to run exit handlers in the executable image and the various shareable images it invoked ? 3. Do you want to run exit handling in the batch file that is controlling the program ? But you cannot avoid running the exit handlers associated with a privileged shareable image. It is possible to construct a pathelogical case that will not kill the process since that would damage system integrity.