From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: unload_datafile( ) freezes - please help :( Date: Sun, 20 Feb 2000 11:25:02 +0200 Organization: NetVision Israel Lines: 18 Message-ID: References: NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 951038876 10121 199.203.121.2 (20 Feb 2000 09:27:56 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 20 Feb 2000 09:27:56 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 18 Feb 2000, Damian Yerrick wrote: > >The Allegro handler doesn't kill the program in response to ctrl+c > >(that wouldn't be desirable for a majority of game/graphics type > >applications), but it does have an emergency exit combo, ctrl+alt+del > >or ctrl+alt+end, which is mapped onto the same thing (calls > >__djgpp_hw_exception with %al = 0x79), which causes libc to print > >the message about ctrl+c being pressed. > > But skips the traceback. No, this is a feature of the signal handling in the library (it's documented in the library docs, in the node which describes the `signal' function): Ctrl-C does not generate the traceback. It also calls `exit' instead of `_exit', so it goes through all the normal exit code, including closing files, flushing buffers, invoking all atexit functions, calling static destructors, etc.