From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: How to port exit(s) from C to Ada
Date: 16 Oct 2002 13:45:46 -0400
Date: 2002-10-16T17:56:41+00:00 [thread overview]
Message-ID: <u1y6q5lbp.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3DA69C5B.A3B8F264@lml.ls.fi.upm.es
Manuel Collado <m.collado@lml.ls.fi.upm.es> writes:
> To terminate immediately, I can raise a user-defined unhandled
> exception, but it would imply an abnormal termination, so the specified
> exit status would be ingnored.
Catch that exception in the top level procedure, and just exit
normally.
As long as you don't have dependent tasks, that will work.
> Is there a way to reproduce the behaviour of the 'exit(status)'
> C-call in pure Ada, without calling it as a foreign procedure?
There's really nothing wrong with calling 'exit', if that's the
behaviour you actually want.
--
-- Stephe
next prev parent reply other threads:[~2002-10-16 17:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-11 9:39 How to port exit(s) from C to Ada Manuel Collado
2002-10-16 13:20 ` Georg Bauhaus
2002-10-16 14:02 ` Preben Randhol
2002-10-16 17:45 ` Stephen Leake [this message]
2002-10-16 18:51 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox