Date: Thu, 13 Feb 1997 08:17:22 +0200 (IST) From: Eli Zaretskii To: Michael Dylan Ryan cc: djgpp AT delorie DOT com Subject: Re: Help with Control-break code In-Reply-To: <5dt2r6$hg8@ruby.ucc.nau.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.