www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/01:23:29

Date: Thu, 13 Feb 1997 08:17:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael Dylan Ryan <mdr6 AT dana DOT ucc DOT nau DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Help with Control-break code
In-Reply-To: <5dt2r6$hg8@ruby.ucc.nau.edu>
Message-ID: <Pine.SUN.3.91.970213081416.8898D-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019