Skip to content
Snippets Groups Projects
Commit fa118519 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

warning

parent 53f7e709
No related branches found
No related tags found
No related merge requests found
// $Id: Message.cpp,v 1.23 2001-08-12 20:45:30 geuzaine Exp $ // $Id: Message.cpp,v 1.24 2001-11-20 09:04:54 geuzaine Exp $
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
...@@ -22,6 +22,9 @@ extern Context_T CTX; ...@@ -22,6 +22,9 @@ extern Context_T CTX;
void Signal (int sig_num){ void Signal (int sig_num){
/* It is VERY wrong to call stdio functions in a signal handler. But
who cares? ;-) */
switch (sig_num){ switch (sig_num){
case SIGSEGV : case SIGSEGV :
Msg(FATAL1, "Segmentation violation (invalid memory reference)"); Msg(FATAL1, "Segmentation violation (invalid memory reference)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment