| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Private Member Functions | Private Attributes | List of all members
Gaudi::Utils::StopSignalHandler Class Reference

Service that stop the processing if a signal is received. More...

Inheritance diagram for Gaudi::Utils::StopSignalHandler:
[legend]
Collaboration diagram for Gaudi::Utils::StopSignalHandler:
[legend]

## Public Member Functions
StatusCode | initialize () override
StatusCode | finalize () override
void | handle (const Incident &) override
Public Member Functions inherited from extends< Service, IIncidentListener >
void * | i_cast (const InterfaceID &tid) const override
| Implementation of IInterface::i_cast. More...
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override
| Implementation of IInterface::queryInterface. More...
std::vector< std::string > | getInterfaceNames () const override
| Implementation of IInterface::getInterfaceNames. More...
Public Member Functions inherited from Service
const std::string & | name () const override
| Retrieve name of the service. More...
StatusCode | configure () override
StatusCode | initialize () override
StatusCode | start () override
StatusCode | stop () override
StatusCode | finalize () override
StatusCode | terminate () override
Gaudi::StateMachine::State | FSMState () const override
Gaudi::StateMachine::State | targetFSMState () const override
StatusCode | reinitialize () override
StatusCode | restart () override
StatusCode | sysInitialize () override
| Initialize Service. More...
StatusCode | sysStart () override
| Initialize Service. More...
StatusCode | sysStop () override
| Initialize Service. More...
StatusCode | sysFinalize () override
| Finalize Service. More...
StatusCode | sysReinitialize () override
| Re-initialize the Service. More...
StatusCode | sysRestart () override
| Re-initialize the Service. More...
| Service (std::string name, ISvcLocator *svcloc)
| Standard Constructor. More...
SmartIF< ISvcLocator > & | serviceLocator () const override
| Retrieve pointer to service locator. More...
StatusCode | setProperties ()
| Method for setting declared properties to the values specified for the job. More...
template<class T >
StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const
| Access a service by name, creating it if it doesn't already exist. More...
template<class T >
StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const
template<typename IFace = IService>
SmartIF< IFace > | service (const std::string &name, bool createIf=true) const
template<class T >
StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const
| Access a service by name and type, creating it if it doesn't already exist. More...
template<class T >
StatusCode | declareTool (ToolHandle< T > &handle, std::string toolTypeAndName, bool createIf=true)
| Declare used tool. More...
SmartIF< IAuditorSvc > & | auditorSvc () const
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
| PropertyHolder ()=default
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Details::PropertyBase &prop)
| Declare a property. More...
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, TYPE &value, const std::string &doc="none")
| Helper to wrap a regular data member and use it as a regular property. More...
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
| Declare a PropertyBase instance setting name and documentation. More...
Gaudi::Details::PropertyBase * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
| Declare a remote property. More...
StatusCode | setProperty (const Gaudi::Details::PropertyBase &p) override
| set the property form another property More...
StatusCode | setProperty (const std::string &s) override
| set the property from the formatted string More...
StatusCode | setProperty (const std::string &n, const std::string &v) override
| set the property from name and the value More...
StatusCode | setProperty (const std::string &name, const TYPE &value)
| set the property form the value More...
StatusCode | getProperty (Gaudi::Details::PropertyBase *p) const override
| get the property More...
const Gaudi::Details::PropertyBase & | getProperty (const std::string &name) const override
| get the property by name More...
StatusCode | getProperty (const std::string &n, std::string &v) const override
| convert the property to the string More...
const std::vector< Gaudi::Details::PropertyBase * > & | getProperties () const override
| get all properties More...
bool | hasProperty (const std::string &name) const override
| Return true if we have a property with the given name. More...
| PropertyHolder (const PropertyHolder &)=delete
PropertyHolder & | operator= (const PropertyHolder &)=delete
Public Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level | msgLevel () const
| get the cached level (originally extracted from the embedded MsgStream) More...
bool | msgLevel (MSG::Level lvl) const
| get the output level from the embedded MsgStream More...
MSG::Level | outputLevel () const
| Backward compatibility function for getting the output level. More...
Public Member Functions inherited from CommonMessagingBase
virtual | ~CommonMessagingBase ()=default
| Virtual destructor. More...
const SmartIF< IMessageSvc > & | msgSvc () const
| The standard message service. More...
MsgStream & | msgStream () const
| Return an uninitialized MsgStream. More...
MsgStream & | msgStream (const MSG::Level level) const
| Predefined configurable message stream for the efficient printouts. More...
MsgStream & | always () const
| shortcut for the method msgStream(MSG::ALWAYS) More...
MsgStream & | fatal () const
| shortcut for the method msgStream(MSG::FATAL) More...
MsgStream & | err () const
| shortcut for the method msgStream(MSG::ERROR) More...
MsgStream & | error () const
| shortcut for the method msgStream(MSG::ERROR) More...
MsgStream & | warning () const
| shortcut for the method msgStream(MSG::WARNING) More...
MsgStream & | info () const
| shortcut for the method msgStream(MSG::INFO) More...
MsgStream & | debug () const
| shortcut for the method msgStream(MSG::DEBUG) More...
MsgStream & | verbose () const
| shortcut for the method msgStream(MSG::VERBOSE) More...
MsgStream & | msg () const
| shortcut for the method msgStream(MSG::INFO) More...

## Private Member Functions
std::pair< int, bool > | i_decodeSignal (const std::string &sig)
| Function to translate the signal name to the signal number. More...

## Private Attributes
Gaudi::Property< std::vector< std::string > > | m_usedSignals
| List of signal names or numbers (encoded as strings) to use to schedule a stop. More...
std::map< int, bool > | m_signals
| Map of monitored signal numbers to the flag telling if they have to be propagated or not. More...
bool | m_stopRequested = false
| Flag to remember if the stop has been requested because of a signal. More...
SmartIF< Gaudi::ISignalMonitor > | m_signalMonitor
| Pointer to the signal monitor service. More...
SmartIF< IIncidentSvc > | m_incidentSvc
| Pointer to the incident service. More...
SmartIF< IProperty > | m_appProperty
| Pointer to the interface to set the return code of the application. More...

## Additional Inherited Members
Public Types inherited from extends< Service, IIncidentListener >
using | base_class = extends
| Typedef to this class. More...
using | extend_interfaces_base = extend_interfaces< Interfaces... >
| Typedef to the base of this class. More...
Public Types inherited from Service
using | Factory = Gaudi::PluginService::Factory< IService *(const std::string &, ISvcLocator *)>
Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
using | PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
| Typedef used to refer to this class from derived classes, as in. More...
Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
using | base_class = CommonMessaging
Public Types inherited from extend_interfaces< Interfaces... >
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
| take union of the ext_iids of all Interfaces... More...
Protected Member Functions inherited from Service
| ~Service () override
| Standard Destructor. More...
int | outputLevel () const
| get the `Service's` output level More...
Protected Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
Gaudi::Details::PropertyBase * | property (const std::string &name) const
Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level | setUpMessaging () const
| Set up local caches. More...
MSG::Level | resetMessaging ()
| Reinitialize internal states. More...
void | updateMsgStreamOutputLevel (int level)
| Update the output level of the cached MsgStream. More...
Protected Attributes inherited from Service
Gaudi::StateMachine::State | m_state = Gaudi::StateMachine::OFFLINE
| Service state. More...
Gaudi::StateMachine::State | m_targetState = Gaudi::StateMachine::OFFLINE
| Service state. More...
Gaudi::Property< int > | m_outputLevel {this, "OutputLevel", MSG::NIL, "output level"}
Gaudi::Property< bool > | m_auditInit {this, "AuditServices", false, " unused"}
Gaudi::Property< bool > | m_auditorInitialize {this, "AuditInitialize", false, "trigger auditor on initialize()"}
Gaudi::Property< bool > | m_auditorStart {this, "AuditStart", false, "trigger auditor on start()"}
Gaudi::Property< bool > | m_auditorStop {this, "AuditStop", false, "trigger auditor on stop()"}
Gaudi::Property< bool > | m_auditorFinalize {this, "AuditFinalize", false, "trigger auditor on finalize()"}
Gaudi::Property< bool > | m_auditorReinitialize {this, "AuditReinitialize", false, "trigger auditor on reinitialize()"}
Gaudi::Property< bool > | m_auditorRestart {this, "AuditRestart", false, "trigger auditor on restart()"}
SmartIF< IAuditorSvc > | m_pAuditorSvc
| Auditor Service. More...

## Detailed Description

Service that stop the processing if a signal is received.

The signals to be intercepted have to be declared in the property Signals as a list of strings (signal names or numbers). If '+' is appended to the signal name, then the signal is propagated to the signal handlers already registered when this service is initialized.

Definition at line 332 of file SignalMonitorSvc.cpp.

## Member Function Documentation

## ◆ finalize()

StatusCode Gaudi::Utils::StopSignalHandler::finalize | ( |  | ) |
| inline override

Definition at line 376 of file SignalMonitorSvc.cpp.

376 {
377 m_incidentSvc->removeListener( this, IncidentType::BeginEvent );
378 m_incidentSvc.reset();
379 // disable the monitoring of the signals
380 std::for_each( std::begin( m_signals ), std::end( m_signals ), [&]( const std::pair<int, bool>& s ) {
381 // tell the signal monitor that we are interested in these signals
382 m_signalMonitor->ignoreSignal( s.first );
383 } );
384 m_signalMonitor.reset();
385 return Service::finalize();
386 }
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:164
Gaudi::Utils::StopSignalHandler::m_incidentSvc
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
Definition: SignalMonitorSvc.cpp:433
std::end
T end(T... args)
Gaudi::Utils::StopSignalHandler::m_signalMonitor
SmartIF< Gaudi::ISignalMonitor > m_signalMonitor
Pointer to the signal monitor service.
Definition: SignalMonitorSvc.cpp:431
Gaudi::Utils::StopSignalHandler::m_signals
std::map< int, bool > m_signals
Map of monitored signal numbers to the flag telling if they have to be propagated or not.
Definition: SignalMonitorSvc.cpp:427
Gaudi::ISignalMonitor::ignoreSignal
virtual void ignoreSignal(int signum)=0
Ignore future occurrences of the given signal number.
std::pair
std::begin
T begin(T... args)
gaudirun.s
string s
Definition: gaudirun.py:316
SmartIF::reset
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
Definition: SmartIF.h:86
IIncidentSvc::removeListener
virtual void removeListener(IIncidentListener *lis, const std::string &type="")=0
Remove listener.
std::for_each
T for_each(T... args)

## ◆ handle()

void Gaudi::Utils::StopSignalHandler::handle | ( | const Incident & |  | ) |
| inline override

Definition at line 388 of file SignalMonitorSvc.cpp.

388 {
389 if ( !m_stopRequested ) {
390 const SigMap& sigmap( SigMap::instance() );
391 for ( const auto& s : m_signals ) {
392 if ( !m_signalMonitor->gotSignal( s.first ) ) continue;
393 warning() << "Received signal '" << sigmap.name( s.first ) << "' (" << s.first;
394 const std::string& desc = sigmap.desc( s.first );
395 if ( !desc.empty() ) warning() << ", " << desc;
396 warning() << ")" << endmsg;
397 m_stopRequested = true;
398 // Report the termination by signal at the end of the application
399 using Gaudi::ReturnCode::SignalOffset;
400 if ( Gaudi::setAppReturnCode( m_appProperty, SignalOffset + s.first ).isFailure() ) {
401 error() << "Could not set return code of the application (" << SignalOffset + s.first << ")" << endmsg;
402 }
403 }
404 if ( m_stopRequested ) {
405 auto ep = serviceLocator()->as<IEventProcessor>();
406 if ( ep ) {
407 warning() << "Scheduling a stop" << endmsg;
408 ep->stopRun().ignore();
409 } else {
410 warning() << "Cannot stop the processing because the IEventProcessor interface cannot be retrieved."
411 << endmsg;
412 }
413 }
414 }
415 }
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: Service.cpp:277
std::string::empty
T empty(T... args)
Gaudi::Utils::StopSignalHandler::m_stopRequested
bool m_stopRequested
Flag to remember if the stop has been requested because of a signal.
Definition: SignalMonitorSvc.cpp:429
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition: CommonMessaging.h:101
ISvcLocator::as
SmartIF< IFace > as()
Definition: ISvcLocator.h:103
Gaudi::Utils::StopSignalHandler::m_signalMonitor
SmartIF< Gaudi::ISignalMonitor > m_signalMonitor
Pointer to the signal monitor service.
Definition: SignalMonitorSvc.cpp:431
std::string
STL class.
Gaudi::Utils::StopSignalHandler::m_signals
std::map< int, bool > m_signals
Map of monitored signal numbers to the flag telling if they have to be propagated or not.
Definition: SignalMonitorSvc.cpp:427
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:98
Gaudi::ISignalMonitor::gotSignal
virtual bool gotSignal(int signum) const =0
Tell if the given signal has been received or not.
Gaudi::Utils::StopSignalHandler::m_appProperty
SmartIF< IProperty > m_appProperty
Pointer to the interface to set the return code of the application.
Definition: SignalMonitorSvc.cpp:435
Gaudi::setAppReturnCode
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
Definition: AppReturnCode.h:49
gaudirun.s
string s
Definition: gaudirun.py:316
IEventProcessor
The IEventProcessor is the interface to process events.
Definition: IEventProcessor.h:14
Gaudi::ReturnCode::SignalOffset
constexpr int SignalOffset
Definition: AppReturnCode.h:34
StatusCode::isFailure
bool isFailure() const
Definition: StatusCode.h:130
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192

## ◆ i_decodeSignal()

std::pair<int, bool> Gaudi::Utils::StopSignalHandler::i_decodeSignal | ( | const std::string & | sig | ) |
| inline private

Function to translate the signal name to the signal number.

Definition at line 437 of file SignalMonitorSvc.cpp.

437 {
438 debug() << "Decoding signal declaration '" << sig << "'" << endmsg;
439 if ( sig.empty() || sig == "+" ) {
440 debug() << "Empty signal, ignored" << endmsg;
441 return {-1, false}; // silently ignore empty strings
442 }
443 const SigMap& sigmap( SigMap::instance() );
444 std::string signal = sig;
445 bool propagate = false;
446 // Check if the signal must be propagated
447 if ( signal[signal.size() - 1] == '+' ) {
448 debug() << "Must be propagated to previously registered signal handlers" << endmsg;
449 propagate = true;
450 signal.erase( signal.size() - 1, 1 ); // remove the '+' at the end of the string
451 }
452 int signum = -1;
453 // check if the signal is a number
454 if ( std::isdigit( signal[0] ) ) {
455 std::istringstream ss( signal );
456 ss >> signum;
457 } else {
458 // try to find the signal name in the list of known signals
459 signum = sigmap.signum( signal );
460 }
461 if ( signum < 0 ) {
462 warning() << "Cannot understand signal identifier '" << sig << "', ignored" << endmsg;
463 } else {
464 verbose() << "Matched signal '" << sigmap.name( signum ) << "' (" << signum;
465 const std::string& desc = sigmap.desc( signum );
466 if ( !desc.empty() ) { verbose() << ", " << desc; }
467 verbose() << ")" << endmsg;
468 }
469 return {signum, propagate};
470 }
std::string::empty
T empty(T... args)
std::istringstream
STL class.
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition: CommonMessaging.h:101
std::string
STL class.
std::isdigit
T isdigit(T... args)
CommonMessagingBase::verbose
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
Definition: CommonMessaging.h:110
CommonMessagingBase::debug
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
Definition: CommonMessaging.h:107
std::signal
T signal(T... args)
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192

## ◆ initialize()

StatusCode Gaudi::Utils::StopSignalHandler::initialize | ( |  | ) |
| inline override

Definition at line 335 of file SignalMonitorSvc.cpp.

335 {
336 StatusCode sc = Service::initialize();
337 if ( sc.isFailure() ) { return sc; }
338 std::string serviceName( "Gaudi::Utils::SignalMonitorSvc" );
339 m_signalMonitor = serviceLocator()->service( serviceName );
340 if ( !m_signalMonitor ) {
341 error() << "Cannot retrieve " << serviceName << endmsg;
342 return StatusCode::FAILURE;
343 }
344 serviceName = "IncidentSvc";
345 m_incidentSvc = serviceLocator()->service( serviceName );
346 if ( !m_incidentSvc ) {
347 error() << "Cannot retrieve " << serviceName << endmsg;
348 return StatusCode::FAILURE;
349 }
350 // Get the IMainAppStatus interface of the ApplicationMgr
351 m_appProperty = serviceLocator();
352 if ( !m_appProperty ) {
353 warning() << "Cannot retrieve IProperty interface of ApplicationMgr, "
354 "the return code will not be changed"
355 << endmsg;
356 }
357 // Decode the signal names
358 for ( const auto& signame : m_usedSignals ) {
359 auto sigid = i_decodeSignal( signame );
360 if ( sigid.first >= 0 ) { m_signals[sigid.first] = sigid.second; }
361 }
362 debug() << "Stopping on the signals:" << endmsg;
363 const SigMap& sigmap( SigMap::instance() );
364 for ( const auto& s : m_signals ) {
365 debug() << "\t" << sigmap.name( s.first ) << ": " << sigmap.desc( s.first ) << " (" << s.first << ")";
366 if ( s.second ) debug() << " propagated";
367 debug() << endmsg;
368 // tell the signal monitor that we are interested in these signals
369 m_signalMonitor->monitorSignal( s.first, s.second );
370 }
371 m_stopRequested = false;
372 debug() << "Register to the IncidentSvc" << endmsg;
373 m_incidentSvc->addListener( this, IncidentType::BeginEvent );
374 return StatusCode::SUCCESS;
375 }
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:60
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: Service.cpp:277
Gaudi::Utils::StopSignalHandler::m_stopRequested
bool m_stopRequested
Flag to remember if the stop has been requested because of a signal.
Definition: SignalMonitorSvc.cpp:429
Gaudi::Utils::StopSignalHandler::m_incidentSvc
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
Definition: SignalMonitorSvc.cpp:433
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition: CommonMessaging.h:101
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
Gaudi::Utils::StopSignalHandler::m_signalMonitor
SmartIF< Gaudi::ISignalMonitor > m_signalMonitor
Pointer to the signal monitor service.
Definition: SignalMonitorSvc.cpp:431
std::string
STL class.
ISvcLocator::service
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
Definition: ISvcLocator.h:76
Gaudi::Utils::StopSignalHandler::m_signals
std::map< int, bool > m_signals
Map of monitored signal numbers to the flag telling if they have to be propagated or not.
Definition: SignalMonitorSvc.cpp:427
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:98
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
Gaudi::Utils::StopSignalHandler::m_usedSignals
Gaudi::Property< std::vector< std::string > > m_usedSignals
List of signal names or numbers (encoded as strings) to use to schedule a stop.
Definition: SignalMonitorSvc.cpp:419
Gaudi::Utils::StopSignalHandler::m_appProperty
SmartIF< IProperty > m_appProperty
Pointer to the interface to set the return code of the application.
Definition: SignalMonitorSvc.cpp:435
Gaudi::Utils::StopSignalHandler::i_decodeSignal
std::pair< int, bool > i_decodeSignal(const std::string &sig)
Function to translate the signal name to the signal number.
Definition: SignalMonitorSvc.cpp:437
CommonMessagingBase::debug
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
Definition: CommonMessaging.h:107
IIncidentSvc::addListener
virtual void addListener(IIncidentListener *lis, const std::string &type="", long priority=0, bool rethrow=false, bool singleShot=false)=0
Add listener.
gaudirun.s
string s
Definition: gaudirun.py:316
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:86
StatusCode::isFailure
bool isFailure() const
Definition: StatusCode.h:130
Gaudi::ISignalMonitor::monitorSignal
virtual void monitorSignal(int signum, bool propagate=true)=0
Add a signal (number) to the list of signals to be monitored.
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192

## Member Data Documentation

## ◆ m_appProperty

SmartIF<IProperty> Gaudi::Utils::StopSignalHandler::m_appProperty
| private

Pointer to the interface to set the return code of the application.

Definition at line 435 of file SignalMonitorSvc.cpp.

## ◆ m_incidentSvc

SmartIF<IIncidentSvc> Gaudi::Utils::StopSignalHandler::m_incidentSvc
| private

Pointer to the incident service.

Definition at line 433 of file SignalMonitorSvc.cpp.

## ◆ m_signalMonitor

SmartIF<Gaudi::ISignalMonitor> Gaudi::Utils::StopSignalHandler::m_signalMonitor
| private

Pointer to the signal monitor service.

Definition at line 431 of file SignalMonitorSvc.cpp.

## ◆ m_signals

std::map<int, bool> Gaudi::Utils::StopSignalHandler::m_signals
| private

Map of monitored signal numbers to the flag telling if they have to be propagated or not.

Definition at line 427 of file SignalMonitorSvc.cpp.

## ◆ m_stopRequested

bool Gaudi::Utils::StopSignalHandler::m_stopRequested = false
| private

Flag to remember if the stop has been requested because of a signal.

Definition at line 429 of file SignalMonitorSvc.cpp.

## ◆ m_usedSignals

Gaudi::Property<std::vector<std::string> > Gaudi::Utils::StopSignalHandler::m_usedSignals
| private

Initial value:
{
this,
"Signals",
{"SIGINT", "SIGXCPU"},
"List of signal names or numbers to use to schedule a stop. "
"If the signal is followed by a '+' the signal is propagated the previously "
"registered handler (if any)."}

List of signal names or numbers (encoded as strings) to use to schedule a stop.

Definition at line 419 of file SignalMonitorSvc.cpp.

The documentation for this class was generated from the following file:

- GaudiUtils/src/component/SignalMonitorSvc.cpp