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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e0c2a51d337d44ce X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: exit a program Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Sun, 2 Aug 2009 14:43:56 +0200 Message-ID: NNTP-Posting-Date: 02 Aug 2009 14:43:56 CEST NNTP-Posting-Host: 76ec3120.newsspool3.arcor-online.net X-Trace: DXC=5eDmG_I[^_:U`5g[@c]@J1McF=Q^Z^V384Fo<]lROoR1^YC2XCjHcb9BX`cZ>N=R`8DNcfSJ;bb[5IRnRBaCd?:\N>mYW\C:eg@Z@@dSiV= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7525 Date: 2009-08-02T14:43:56+02:00 List-Id: On Sun, 02 Aug 2009 14:13:03 +0200, Autoscontro difettoso wrote: > is there an instruction that stops a program? No, because it is ill-defined. In order to define "stop of a program" consider what happens with the system resources allocated by the program (open files, shared libraries, sockets etc), its tasks, its objects allocated and initialized on the stacks of the tasks and in the heap. Which of them will be freed, finalized, deallocated etc? Once you answer these questions you could find an appropriate way to accomplish a "stop". > i need to stop a program and return to o.s. in case of an exception. Let it propagate out of the main task, that will terminate the program. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de