comp.lang.ada
 help / color / mirror / Atom feed
From: Alfred Hilscher <Alfred.Hilscher@icn.siemens.de>
Subject: Re: Terminate program in Ada95
Date: 2000/11/27
Date: 2000-11-27T00:00:00+00:00	[thread overview]
Message-ID: <3A229052.7FECA610@icn.siemens.de> (raw)
In-Reply-To: 975328139.872809@edh3

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




  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 ` Marc A. Criley
2000-11-27  0:00 ` Ted Dennison
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 ` Alfred Hilscher [this message]
2000-11-27  0:00   ` Warren W. Gay VE3WWG
replies disabled

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