Skip to content

Commit

Permalink
Add implementation for signal handling. Use generic signal handler in…
Browse files Browse the repository at this point in the history
… DDG4 for controlled shutdown on CTRL-C. Add test DDG4_SIGINT_handler in examples/DDG4
  • Loading branch information
MarkusFrankATcernch committed Oct 17, 2024
1 parent ebeb91a commit 9f258ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/DDG4/scripts/TestSIGINT.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run():
act = DDG4.EventAction(kernel, 'TestSignalAction/SigAction', True)
act.signal_event = 3
kernel.eventAction().add(act)

# And handle the simulation particles.
part = DDG4.GeneratorAction(kernel, "Geant4ParticleHandler/ParticleHandler")
kernel.generatorAction().adopt(part)
Expand Down

0 comments on commit 9f258ce

Please sign in to comment.