Go to the first, previous, next, last section, table of contents.


__djgpp_traceback_exit

Syntax

#include <signal.h>

void __djgpp_traceback_exit(int signo);

Description

This function is a signal handler which will print a traceback and abort the program. It is called by default by the DJGPP signal-handling code when any signal except SIGQUIT is raised (SIGQUIT is by default discarded).

You can use this function to get the Unix behavior of aborting the program on SIGQUIT (see the example below).

When this function is called directly, pass the signal number as its signo argument.

Portability

not ANSI, not POSIX

Example

  signal(SIGQUIT, __djgpp_traceback_exit);


Go to the first, previous, next, last section, table of contents.