|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/IEventProcessor.h"
31 struct sigaction act{};
32 struct sigaction oldact{};
34 act.sa_handler=
nullptr;
36 act.sa_flags=SA_RESTART | SA_SIGINFO;
38 if (sigaction(
m_signal,&act,&oldact)==-1) {
40 return StatusCode::FAILURE;
45 if (oldact.sa_handler==SIG_DFL || oldact.sa_handler==SIG_IGN) {
52 return StatusCode::SUCCESS;
61 return StatusCode::SUCCESS;
71 if (gSignalStatus!=0) {
74 SmartIF<IEventProcessor> appMgr{service(
"ApplicationMgr")};
79 return StatusCode::SUCCESS;
void signal_handler(int, siginfo_t *, void *)
int m_signal
member variables for algorithm properties:
StatusCode installHandler()
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode execute()
standard Athena-Algorithm method
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize()
standard Athena-Algorithm method
AppStopAlg(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
#define ATLAS_THREAD_SAFE
Define macros for attributes used to control the static checker.