Date: Sun, 18 Apr 1999 14:07:23 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: taupin cc: DJGPP List Subject: Re: Disabling ^C In-Reply-To: <371760E3.181FDF22@lps.u-psud.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 16 Apr 1999, taupin wrote: > Wordk OK but now, if I incidentally depress ^C, then microemacs is > killed... withour any save. Therefore my question: > > How can I disable ^C to kill a program? The simplest way is to make the program ignore SIGINT: signal (SIGINT, SIG_IGN); I suggest to read the documentation of the library function `signal' in the library docs. Ctrl-C and Ctrl-BREAK both generate SIGINT in DJGPP.