44 #include "Parser_dh.h"
48 #define __FUNC__ "sigHandler_dh"
50 sigHandler_dh (
int sig)
52 fprintf (stderr,
"\n[%i] Euclid Signal Handler got: %s\n", myid_dh,
55 "[%i] ========================================================\n",
58 "[%i] function calling sequence that led to the exception:\n",
61 "[%i] ========================================================\n",
63 printFunctionStack (stderr);
64 fprintf (stderr,
"\n\n");
68 fprintf (logFile,
"\n[%i] Euclid Signal Handler got: %s\n", myid_dh,
71 "[%i] ========================================================\n",
74 "[%i] function calling sequence that led to the exception:\n",
77 "[%i] ========================================================\n",
79 printFunctionStack (logFile);
80 fprintf (logFile,
"\n\n");
87 #define __FUNC__ "sigRegister_dh"
91 if (Parser_dhHasSwitch (parser_dh,
"-sig_dh"))
94 for (i = 0; i < euclid_signals_len; ++i)
96 signal (euclid_signals[i], sigHandler_dh);