| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# SignalMonitorSvc.cpp File Reference

`#include "GaudiKernel/Service.h"`
`#include "GaudiUtils/ISignalMonitor.h"`
`#include <csignal>`
`#include <iostream>`
`#include <cctype>`
`#include <sstream>`
`#include <map>`
`#include "GaudiKernel/HashMap.h"`
`#include "GaudiKernel/IIncidentListener.h"`
`#include "GaudiKernel/IIncidentSvc.h"`
`#include "GaudiKernel/IEventProcessor.h"`
`#include "GaudiKernel/AppReturnCode.h"`
`#include "GaudiKernel/SvcFactory.h"`

Include dependency graph for SignalMonitorSvc.cpp:

Go to the source code of this file.

## Namespaces
namespace | Gaudi
namespace | Gaudi::Utils
## Classes
class | Gaudi::Utils::SignalMonitorSvc
| Implementation of Gaudi::ISignalMonitor. More...
class | Gaudi::Utils::StopSignalHandler
| Service that stop the processing if a signal is received. More...
## Defines
#define | addSignal(id) i_addSignal(id, #id);
## Typedefs
typedef Gaudi::Utils::SignalMonitorSvc | g_u_sms
typedef Gaudi::Utils::StopSignalHandler | g_u_ssh
## Functions
const char * | sig_desc (int signum)

## Define Documentation

#define addSignal | ( | id |  | ) | i_addSignal(id, #id);

## Typedef Documentation

typedef Gaudi::Utils::SignalMonitorSvc g_u_sms

Definition at line 515 of file SignalMonitorSvc.cpp.

typedef Gaudi::Utils::StopSignalHandler g_u_ssh

Definition at line 519 of file SignalMonitorSvc.cpp.

## Function Documentation

const char* @707::sig_desc | ( | int | signum | ) | `[static]`

Definition at line 182 of file SignalMonitorSvc.cpp.

    00182                                    {
    00183     if (signum >= NSIG || signum < 0)
    00184       return 0;
    00185 #ifdef _WIN32
    00186     switch (signum) {
    00187     case SIGINT:   return "Interrupt";
    00188     case SIGILL:   return "Illegal instruction";
    00189     case SIGFPE:   return "Floating point exception";
    00190     case SIGSEGV:  return "Segmentation fault";
    00191     case SIGTERM:  return "Terminated";
    00192     case SIGBREAK: return "Trace/breakpoint trap";
    00193     case SIGABRT:  return "Aborted";
    00194     default: return 0;
    00195     }
    00196 #else
    00197     return sys_siglist[signum];
    00198 #endif
    00199   }

## Variable Documentation

GaudiUtils::HashMap<std::string, int> m_name2num

Definition at line 328 of file SignalMonitorSvc.cpp.

GaudiUtils::HashMap<int, std::string> m_num2desc

Definition at line 330 of file SignalMonitorSvc.cpp.

GaudiUtils::HashMap<int, std::string> m_num2id

Definition at line 329 of file SignalMonitorSvc.cpp.