delorie.com/djgpp/doc/libc/libc_148.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__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

ANSI/ISO C No
POSIX No

Example

 
  signal(SIGQUIT, __djgpp_traceback_exit);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004