Mail Archives: djgpp/1997/02/13/01:23:29
On 12 Feb 1997, Michael Dylan Ryan wrote:
> Can someone give me some code (or point me in the right direction) on
> disabling control-break, control-c, control-alt-del?
For Ctrl-Break and Ctrl-C, install a signal handler for the signal SIGINT
and make it just return. Check out the docs for the `signal' library
function in libc.inf reference.
To disable Ctrl-Alt-Del, you will have to install a hardware keyboard
interrupt handler, or hack the crt0.s (which already installs such a
handler) and make it watch for this combination and not pass it down the
line.
- Raw text -