gaudirun.py
from Gaudi.Configuration import *
from Configurables import GaudiTesting__SignallingAlg as SignallingAlg
from Configurables import Gaudi__Utils__StopSignalHandler as StopSignalHandler
importOptions("Common.opts")
alg = SignallingAlg(Signal = 2) # SIGINT
#StopSignalHandler(Signals = ["SIGINT", "SIGXCPU"]) # this is the default
app = ApplicationMgr(TopAlg = [alg],
EvtSel = "NONE", EvtMax = 5,
StopOnSignal = True)
MessageSvc().setDebug.append("EventLoopMgr")
130
findReferenceBlock("""
GaudiTesting::S... INFO 3 events to go
GaudiTesting::S... INFO 2 events to go
GaudiTesting::S... INFO 1 events to go
GaudiTesting::S... INFO Raising signal now
Gaudi::Utils::S...WARNING Received signal 'SIGINT' (2, Interrupt)
Gaudi::Utils::S...WARNING Scheduling a stop
EventLoopMgr SUCCESS Terminating event processing loop due to a stop scheduled by an incident listener
ApplicationMgr INFO Application Manager Stopped successfully
""")