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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.0.21 with SMTP id 21mr1702588ita.13.1512321406307; Sun, 03 Dec 2017 09:16:46 -0800 (PST) X-Received: by 10.157.11.207 with SMTP id 73mr538409oth.2.1512321406221; Sun, 03 Dec 2017 09:16:46 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.kjsl.com!usenet.stanford.edu!i6no2161623itb.0!news-out.google.com!s63ni2299itb.0!nntp.google.com!193no467437itr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 3 Dec 2017 09:16:45 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8303:2100:5985:2c17:9409:aa9c; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8303:2100:5985:2c17:9409:aa9c References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3dcad98b-d517-4c3a-a77b-dd584c143b2c@googlegroups.com> Subject: Re: How to tell whether program finalization can be suppressed From: Robert Eachus Injection-Date: Sun, 03 Dec 2017 17:16:46 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:49332 Date: 2017-12-03T09:16:45-08:00 List-Id: On Saturday, December 2, 2017 at 6:12:13 AM UTC-5, AdaMagica wrote: >=20 > Just to refresh my memory: > The main subprogram is the master of any library tasks. It may be empty (= I just confirmed this with a little test) and thus does not exit until all = library tasks are terminated or waiting on a terminate alternative. >=20 > with Lib; -- in the elaboration sequence, there are some tasks > procedure Main is > begin > null; -- waiting here for tasks to terminate > end Main; No, the environment task is the master of library level tasks. It doesn't = matter in your test case since the waiting will occur after the main progra= m completes. If the desire is not to wait after the main program finishes,= end it with an abort statement. Nicer means of program shutdown when the = main program completes are left as an exercise for the reader.