comp.lang.ada
 help / color / mirror / Atom feed
From: robert_dewar@my-dejanews.com
Subject: Re: How to bypass CTRL-C?
Date: 1999/01/28
Date: 1999-01-28T00:00:00+00:00	[thread overview]
Message-ID: <78pquj$6n9$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36AF61EE.93C36E67@videotron.com

In article <36AF61EE.93C36E67@videotron.com>,
  psx2@videotron.ca wrote:
> The topic says it all.
> How can I block the CTRL-C keys so that the
> program can not terminate that way.


This is of course highly implementation dependent. You
should look at your compiler documentation. If you search
for Ctrl-C in the secret GNAT archives (namely the GNAT
Reference manual :-) you will find a paragraph on the
Unreserve_All_Interrupts pragma, which is specifically
there to let a programmer handle the Ctrl-C (and possibly
other similar) interrupts.

So this completely solves the problem with GNAT. If you are
using some other compiler, go look in their documentation
and hopefully you will find they have done something
similar. If not, you will be on your own and have to do
non-Ada fiddling.

Documentation is useful stuff, try it some time :-)

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-01-28  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-27  0:00 How to bypass CTRL-C? psx2
1999-01-27  0:00 ` Larry Kilgallen
1999-01-28  0:00 ` robert_dewar [this message]
1999-01-28  0:00 ` bourguet
1999-01-28  0:00 ` Geert Bosch
  -- strict thread matches above, loose matches on Subject: below --
1999-01-28  0:00 John Herro
replies disabled

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