Mail Archives: djgpp/1999/11/07/12:19:44
On Fri, 5 Nov 1999, Gecko23 wrote:
> > when I press CTRL-C it print this:
> [snipped traceback]
>
> pressing CTRL-C generates SIGINT, which causes your
> program to abort. The abort triggers the traceback
> and dump.
This is not true: Ctrl-C does NOT cause a traceback. It simply aborts
the program after printing a message like this:
Exiting due to signal SIGINT
INTR key pressed at eip=NNNNNNNN
Moreover, unlike other fatal signals, Ctrl-C even goes through the
normal exit procedure by calling `exit', rather than `_exit', as other
signals do. So it even flushes the file buffers, closes any open
files, and calls all the functions registered with `atexit'.
> Personally I like being able to kill errant djgpp apps with ctrl-c,
> so I'm definately no expert on disabling it. I'm sure one of the more
> knowledgeable souls around here can help you with that.
It is all described in the docs. Type "info libc alpha signal" and
read there.
- Raw text -