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: Alfred Hilscher Subject: Re: Terminate program in Ada95 Date: 2000/11/27 Message-ID: <3A229052.7FECA610@icn.siemens.de>#1/1 X-Deja-AN: 698296425 Content-Transfer-Encoding: 8bit References: <975328139.872809@edh3> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Siemens AG Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-11-27T00:00:00+00:00 List-Id: Hi, some time ago I had the same problem (on WinNT). I did two things: a) I close the socket from an other task (that works for TCP sockets but not for UDP in my environment) b) In that cases where a) does not work, I send explizitly data to that socket (so the task returns from the receive call and continues) and call "abort". Regards, Alfred "Atle R�stad" wrote: > > Hi > > How can I do an unconditionaly terminate of my program in Ada95? > > 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). > > Regards Atle