PDA

View Full Version : prevent exiting



Unregistered
12-05-2001, 10:38 PM
Is there a way to prevent ctrl c from exiting my program?

cody
12-06-2001, 03:18 AM
Hi,

yes, there is a way. You'll have to install your own signal handler by using the signal() function.

enjoy :)
cody

Magos
12-11-2001, 05:08 PM
Why would you like to do that? If you happen to get into an infinite loop when testing the program, it won't be fun... :)

doubleanti
12-11-2001, 08:43 PM
yeah, but if you really do have bulletproof code, that would never happen... plus, if you are coding over a windows environment, you could alt-tab to the rescue... [you'd have to mask those as well... :) or have a preset PIF disabling those shortcuts...]... if you really want to usurp it, i'd recommend you do it very last...

VirtualAce
12-12-2001, 02:57 PM
Is there an echo in here..................?