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,8893269a4640c798 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-21 22:14:28 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: terminate applications Date: Tue, 22 Jul 2003 00:16:05 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3F17DF3C.4080204@noplace.com> <3F196773.2060809@noplace.com> <3F19F86C.9050808@attbi.com> <3F1A772F.9060708@noplace.com> <3F1AD6FB.8080806@attbi.com> <3F1BD666.6040506@noplace.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:40607 Date: 2003-07-22T00:16:05-05:00 List-Id: "Marin David Condic" wrote in message news:3F1BD666.6040506@noplace.com... > Yes, a clean shutdown is desirable. I suspect where I have my program > hanging trying to terminate the environment task is within some OS fault > - or "feature". But so long as the user has a control-C key on his > keyboard, there exists the possibility of a direct headshot to a > program, so it must be possible to do that from under program control. For what it's worth, Janus/Ada's runtime tries to trap as many such possible "headshots" and cause a clean shutdown. We definitely try to trap control-C (which doesn't always work for some reason that I've never understood). That has it's roots in our compiler, where it was traditional to kill long compilations with control-C if they were finding too many errors or some other problem came up. But a straight kill would leave temporary files and (worse) partially written object files which could confuse the Make tool. Thus, we tried very hard to insure that compiles were never aborted without the clean-up code running. Of course, there is no recourse to a kill -9 or pulling the plug. But those should be a really last resort. (Of course, I've never seen a program with a correct runtime hang when it was aborted. I had some programs do that when the runtime was screwed up, but no other time. If checks are not suppressed, I'd consider it a bug.) Randy.