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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,20324ebb3709048c X-Google-Attributes: gid103376,public From: "Marc A. Criley" Subject: Re: Terminate program in Ada95 Date: 2000/11/27 Message-ID: <3A224F2F.2077DCAE@earthlink.net>#1/1 X-Deja-AN: 698225980 Content-Transfer-Encoding: 8bit References: <975328139.872809@edh3> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 975330749 63.178.185.58 (Mon, 27 Nov 2000 05:12:29 PST) Organization: Quadrus Corporation MIME-Version: 1.0 NNTP-Posting-Date: Mon, 27 Nov 2000 05:12:29 PST Newsgroups: comp.lang.ada Date: 2000-11-27T00:00:00+00:00 List-Id: "Atle R�stad" wrote: > > Hi > > How can I do an unconditionaly terminate of my program in Ada95? If you're using a Unix variant, you can interface to the "exit" function and invoke that. Or if you're using GNAT, you can call GNAT.OS_Lib.OS_Exit. Another approach is to abort the tasks (see RM 9.8) that can't be terminated. > > Why I want to do it? I have a program were some of the tasks are listning to > messages received/or sending on a socket. I want to write a testprogram, and > reuse the tasks that takes care of the sending/receiving of messages. But > when my testprogram should end it will still have some tasks open for > sending/receiving messages and it keeps waitng for those tasks to end (which > they will not do). Since I'm not allowed to modify the tasks I'm reusing I > want an command that terminates the whole program. (Like java.system.exit() > in java). That situation is somewhat odd. Code was written to monitor sockets, but there was no provision made for terminating the monitoring?? Marc A. Criley Senior Staff Engineer Quadrus Corporation