comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcquad@earthlink.net>
Subject: Re: Terminate program in Ada95
Date: 2000/11/27
Date: 2000-11-27T00:00:00+00:00	[thread overview]
Message-ID: <3A224F2F.2077DCAE@earthlink.net> (raw)
In-Reply-To: 975328139.872809@edh3

"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




      parent reply	other threads:[~2000-11-27  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-27  0:00 Terminate program in Ada95 Atle R�stad
2000-11-27  0:00 ` Robert A Duff
2000-11-27  0:00 ` Mats Weber
2000-11-27  0:00   ` Florian Weimer
2000-11-27  0:00 ` Ted Dennison
2000-11-27  0:00 ` Alfred Hilscher
2000-11-27  0:00   ` Warren W. Gay VE3WWG
2000-11-27  0:00 ` Marc A. Criley [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox