next-exp / nexus

Geant4 simulation framework of the NEXT Collaboration
5 stars 55 forks source link

Interactive mode signal interrupt #159

Closed gondiaz closed 2 years ago

gondiaz commented 2 years ago

A nexus process in interactive mode is killed by an interrupt (Ctrl-C). Nevertheless memory is not explicitly deallocated, leaving a corrupt output file. This PR solves this issue by using a signal.

jmalbos commented 2 years ago

Use the exit command instead of ctrl-C. That way the application closes correctly, generating a valid output file.

gondiaz commented 2 years ago

Great, I wasn't aware of this command..