delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/20/14:17:08

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1000220112018.25009a-100000@is>
References: <F77915E7F086D31197F4009027CC81C9296A47 AT probe-2 DOT as-london DOT acclaim DOT com> <l77rassam2bsl72nq17vcfr2ro72cn0utk AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
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: <l77rassam2bsl72nq17vcfr2ro72cn0utk@4ax.com>
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

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.

- Raw text -


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